def test_get_fields(self): fields = Book.get_fields() self.assertEqual(len(fields), 7) self.assertEqual( sorted(list(fields.keys())), sorted([ 'id', 'content', 'name', 'author', 'date_created', 'price', 'quantity' ]))
def test_get_fields(self): fields = Book.get_fields() self.assertEqual(len(fields), 7) self.assertEqual( sorted(list(fields.keys())), sorted([ "id", "content", "name", "author", "date_created", "price", "quantity" ]), )