Fixed a test

This commit is contained in:
Raoul Snyman 2017-03-01 19:51:15 -07:00
parent 35af0af211
commit 678a42263d

View File

@ -324,8 +324,8 @@ class TestAuthorsForm(TestCase, TestMixin):
mocked_critical_error.assert_called_once_with( mocked_critical_error.assert_called_once_with(
message='You have not set a display name for the author, combine the first and last names?', message='You have not set a display name for the author, combine the first and last names?',
parent=self.form, question=True) parent=self.form, question=True)
mocked_first_name_edit_text.assert_called_once_with() assert mocked_first_name_edit_text.call_count == 2
mocked_last_name_edit_text.assert_called_once_with() assert mocked_last_name_edit_text.call_count == 2
mocked_display_edit_text.assert_called_once_with() mocked_display_edit_text.assert_called_once_with()
mocked_display_edit_setText.assert_called_once_with('John Newton') mocked_display_edit_setText.assert_called_once_with('John Newton')
mocked_accept.assert_called_once_with(self.form) mocked_accept.assert_called_once_with(self.form)