mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Replaced type-specific assertions with assertEqual().
Python docs say, "it's usually not necessary to invoke these methods directly."
This commit is contained in:
@@ -48,9 +48,7 @@ class BaseOrderWithRespectToTests:
|
||||
# It doesn't matter which answer we use to check the order, it will
|
||||
# always be the same.
|
||||
a2 = self.Answer.objects.create(text="Number five", question=self.q1)
|
||||
self.assertListEqual(
|
||||
list(a1.question.get_answer_order()), list(a2.question.get_answer_order())
|
||||
)
|
||||
self.assertEqual(list(a1.question.get_answer_order()), list(a2.question.get_answer_order()))
|
||||
|
||||
def test_change_ordering(self):
|
||||
# The ordering can be altered
|
||||
|
||||
Reference in New Issue
Block a user