Exemplo n.º 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]
                      )
Exemplo n.º 2
0
 def test_get_flat_columns_wo_settings(self):
     c = get_flat_columns(Groups)
     self.assertEqual(c, [])
Exemplo n.º 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])
Exemplo n.º 4
0
 def test_get_flat_columns_wo_settings(self):
     c = get_flat_columns(Groups)
     self.assertEqual(c, [])