really test that update_taskstatus is called

This commit is contained in:
Jan Dittberner 2014-06-01 23:05:28 +02:00
parent 266794d447
commit 6b36cc95ff

View file

@ -29,7 +29,7 @@ class TaskResultInlineTest(TestCase):
mock.return_value = [entrymock] mock.return_value = [entrymock]
requestmock = Mock(name='request') requestmock = Mock(name='request')
UserTaskResultInline(User, self.site).get_queryset(requestmock) UserTaskResultInline(User, self.site).get_queryset(requestmock)
entrymock.assert_calledwith() entrymock.update_taskstatus.assert_calledwith()
def test_has_add_permissions_returns_false(self): def test_has_add_permissions_returns_false(self):
self.assertFalse( self.assertFalse(