Esempio n. 1
0
 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')
Esempio n. 2
0
 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")
Esempio n. 3
0
 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')
Esempio n. 4
0
 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")