예제 #1
0
 def test_get_flat_columns(self):
     c = get_flat_columns(User)
     table = User.__table__.c
     self.assertEqual(c, [table.name,
                          table.fullname,
                          table.password,
                          table.sex]
                      )
예제 #2
0
 def test_get_flat_columns_wo_settings(self):
     c = get_flat_columns(Groups)
     self.assertEqual(c, [])
예제 #3
0
 def test_get_flat_columns(self):
     c = get_flat_columns(User)
     table = User.__table__.c
     self.assertEqual(
         c, [table.name, table.fullname, table.password, table.sex])
예제 #4
0
 def test_get_flat_columns_wo_settings(self):
     c = get_flat_columns(Groups)
     self.assertEqual(c, [])