def test_add_wikipage(self, mock_new_wikipage): rm = RequestMaker('/api/v1', 'fakehost', 'faketoken') project = Project(rm, id=1) project.add_wikipage('WP 1', 'Content') mock_new_wikipage.assert_called_with(1, 'WP 1', 'Content')
def test_add_wikipage(self, mock_new_wikipage): rm = RequestMaker("/api/v1", "fakehost", "faketoken") project = Project(rm, id=1) project.add_wikipage("WP 1", "Content") mock_new_wikipage.assert_called_with(1, "WP 1", "Content")