diff --git a/boards/tests/test_post.py b/boards/tests/test_post.py --- a/boards/tests/test_post.py +++ b/boards/tests/test_post.py @@ -155,37 +155,22 @@ class PostTests(TestCase): """ op1 = Post.objects.create_post(title='title', text='text') - op2 = Post.objects.create_post(title='title', text='text') thread1 = op1.get_thread() thread1.max_posts = 5 thread1.save() uid_1 = op1.uid - uid_2 = op2.uid # Create multi reply Post.objects.create_post( - title='title', text='text', thread=thread1, - opening_posts=[op1, op2]) - thread_update_time_2 = op2.get_thread().last_edit_time + title='title', text='text', thread=thread1) for i in range(6): Post.objects.create_post(title='title', text='text', thread=thread1) self.assertFalse(op1.get_thread().can_bump(), 'Thread is bumpable when it should not be.') - self.assertTrue(op2.get_thread().can_bump(), - 'Thread is not bumpable when it should be.') self.assertNotEqual( uid_1, Post.objects.get(id=op1.id).uid, 'UID of the first OP should be changed but it is not.') - self.assertEqual( - uid_2, Post.objects.get(id=op2.id).uid, - 'UID of the first OP should not be changed but it is.') - - self.assertNotEqual( - thread_update_time_2, - Thread.objects.get(id=op2.get_thread().id).last_edit_time, - 'Thread last update time should change when the other thread ' - 'changes status.')