def test_add_wikilink(self, mock_new_wikilink): rm = RequestMaker('/api/v1', 'fakehost', 'faketoken') project = Project(rm, id=1) project.add_wikilink('WL 1', 'href') mock_new_wikilink.assert_called_with(1, 'WL 1', 'href')
def test_add_wikilink(self, mock_new_wikilink): rm = RequestMaker("/api/v1", "fakehost", "faketoken") project = Project(rm, id=1) project.add_wikilink("WL 1", "href") mock_new_wikilink.assert_called_with(1, "WL 1", "href")