Replaced type-specific assertions with assertEqual().

Python docs say, "it's usually not necessary to invoke these methods directly."
This commit is contained in:
Tim Graham 2017-03-17 07:51:48 -04:00 committed by GitHub
parent e32265de1a
commit 6b4f018b2b
23 changed files with 93 additions and 102 deletions

View file

@ -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