Exemple #1
0
    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"]),
        )
Exemple #2
0
    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']))