Example #1
0
 def test_like(self, mock_requestmaker_post):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     self.assertEqual(project.like().id, 1)
     mock_requestmaker_post.assert_called_with('/{endpoint}/{id}/like',
                                               endpoint='projects',
                                               id=1)
Example #2
0
 def test_like(self, mock_requestmaker_post):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     self.assertEqual(project.like().id, 1)
     mock_requestmaker_post.assert_called_with("/{endpoint}/{id}/like",
                                               endpoint="projects",
                                               id=1)
Example #3
0
 def test_like(self, mock_requestmaker_post):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     self.assertEqual(project.like().id, 1)
     mock_requestmaker_post.assert_called_with(
         '/{endpoint}/{id}/like',
         endpoint='projects', id=1
     )