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] )
def test_get_flat_columns_wo_settings(self): c = get_flat_columns(Groups) self.assertEqual(c, [])
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])