<s> from __future__ import unicode_literals <EOL> from django . test import TestCase <EOL> from table . tables import Table <EOL> from table . columns import Column <EOL> class TestTable ( Table ) : <EOL> foo = Column ( field = '<STR_LIT:id>' , header = '<STR_LIT>' , header_row_order = <NUM_LIT:0> ) <EOL> bar = Column ( field = '<STR_LIT:name>' , header = '<STR_LIT>' , header_row_order = <NUM_LIT:1> ) <EOL> class BaseTableTestCase ( TestCase ) : <EOL> def setUp ( self ) : <EOL> data = [ { '<STR_LIT:id>' : <NUM_LIT:1> , '<STR_LIT:name>' : '<STR_LIT:a>' } , { '<STR_LIT:id>' : <NUM_LIT:2> , '<STR_LIT:name>' : '<STR_LIT:b>' } ] <EOL> self . table = TestTable ( data ) <EOL> def test_data_source ( self ) : <EOL> data = [ { '<STR_LIT:id>' : <NUM_LIT:1> , '<STR_LIT:name>' : '<STR_LIT:a>' } , { '<STR_LIT:id>' : <NUM_LIT:2> , '<STR_LIT:name>' : '<STR_LIT:b>' } ] <EOL> self . assertEqual ( self . table . data . list , data ) <EOL> def test_rows ( self ) : <EOL> first_row = self . table . rows [ <NUM_LIT:0> ] . values ( ) <EOL> second_row = self . table . rows [ <NUM_LIT:1> ] . values ( ) <EOL> self . assertEqual ( first_row , [ '<STR_LIT:1>' , '<STR_LIT:a>' ] ) <EOL> self . assertEqual ( second_row , [ '<STR_LIT:2>' , '<STR_LIT:b>' ] ) <EOL> def test_header_rows ( self ) : <EOL> first_header_row = [ header . text for header in self . table . header_rows [ <NUM_LIT:0> ] ] <EOL> second_header_row = [ header . text for header in self . table . header_rows [ <NUM_LIT:1> ] ] <EOL> self . assertEqual ( first_header_row , [ '<STR_LIT>' ] ) <EOL> self . assertEqual ( second_header_row , [ '<STR_LIT>' ] ) <EOL> class TableDataMapTestCase ( TestCase ) : <EOL> def test_register ( self ) : <EOL> pass <EOL> def test_get_data ( self ) : <EOL> pass <EOL> def test_get_columns ( self ) : <EOL> pass <EOL> class TableAddonsTestCase ( TestCase ) : <EOL> def test_basic_init ( self ) : <EOL> pass <EOL> def test_render_dom ( self ) : <EOL> pass <EOL> class TableOptionsTestCase ( TestCase ) : <EOL> def test_basic_init ( self ) : <EOL> pass <EOL> class TableMetaClassTestCase ( TestCase ) : <EOL> def test_create_class_obj ( self ) : <EOL> pass </s>
