diff --git a/boards/tests.py b/boards/tests.py --- a/boards/tests.py +++ b/boards/tests.py @@ -96,4 +96,4 @@ class BoardTests(TestCase): thread = Post.objects.get_thread(op_id) - self.assertEqual(3, thread.__len__()) + self.assertEqual(3, len(thread))