def test_get_fields_with_changed_db_column(self): fields = Author.get_fields() self.assertEqual(len(fields), 5) self.assertEqual( sorted(list(fields.keys())), sorted(["na", "name", "age", "publisher", "email"]), )
def test_get_fields_with_changed_db_column(self): fields = Author.get_fields() self.assertEqual(len(fields), 5) self.assertEqual(sorted(list(fields.keys())), sorted(['na', 'name', 'age', 'publisher', 'email']))