Exemplo n.º 1
0
 def test_downvote(self, mock_requestmaker_post):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     issue = Issue(rm, id=1)
     self.assertEqual(issue.downvote().id, 1)
     mock_requestmaker_post.assert_called_with('/{endpoint}/{id}/downvote',
                                               endpoint='issues',
                                               id=1)
Exemplo n.º 2
0
 def test_downvote(self, mock_requestmaker_post):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     issue = Issue(rm, id=1)
     self.assertEqual(issue.downvote().id, 1)
     mock_requestmaker_post.assert_called_with(
         '/{endpoint}/{id}/downvote',
         endpoint='issues', id=1
     )
Exemplo n.º 3
0
 def test_downvote(self, mock_requestmaker_post):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     issue = Issue(rm, id=1)
     self.assertEqual(issue.downvote().id, 1)
     mock_requestmaker_post.assert_called_with("/{endpoint}/{id}/downvote", endpoint="issues", id=1)
Exemplo n.º 4
0
 def test_downvote(self, mock_requestmaker_post):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     issue = Issue(rm, id=1)
     self.assertEqual(issue.downvote().id, 1)
     mock_requestmaker_post.assert_called_with("/{endpoint}/{id}/downvote", endpoint="issues", id=1)