This commit is contained in:
Doug Blank 2015-05-05 13:29:26 -04:00
commit 7c9fd0ae63

View File

@ -46,9 +46,9 @@ class TestUser_prompt(unittest.TestCase):
def test_prompt_runs_QuestionDialog2(self): def test_prompt_runs_QuestionDialog2(self):
with patch('gramps.gui.user.QuestionDialog2') as MockQD: with patch('gramps.gui.user.QuestionDialog2') as MockQD:
self.user.prompt(TestUser.TITLE, TestUser.MSG, self.user.prompt(TestUser.TITLE, TestUser.MSG,
TestUser.ACCEPT, TestUser.REJECT) TestUser.ACCEPT, TestUser.REJECT, None)
MockQD.assert_called_once_with(TestUser.TITLE, TestUser.MSG, MockQD.assert_called_once_with(TestUser.TITLE, TestUser.MSG,
TestUser.ACCEPT, TestUser.REJECT) TestUser.ACCEPT, TestUser.REJECT, None)
MockQD.return_value.run.assert_called_once_with() MockQD.return_value.run.assert_called_once_with()
# TODO test that run's return is the one returned by prompt()... # TODO test that run's return is the one returned by prompt()...