Exemplo n.º 1
0
 def test_add_issue(self, mock_new_issue):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.add_issue('Issue 1', 1, 2, 3, 4)
     mock_new_issue.assert_called_with(1, 'Issue 1', 1, 2, 3, 4)
Exemplo n.º 2
0
 def test_add_issue(self, mock_new_issue):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     project.add_issue("Issue 1", 1, 2, 3, 4)
     mock_new_issue.assert_called_with(1, "Issue 1", 1, 2, 3, 4)
Exemplo n.º 3
0
 def test_add_issue(self, mock_new_issue):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.add_issue('Issue 1', 1, 2, 3, 4)
     mock_new_issue.assert_called_with(1, 'Issue 1', 1, 2, 3, 4)
Exemplo n.º 4
0
 def test_add_issue(self, mock_new_issue):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     project.add_issue("Issue 1", 1, 2, 3, 4)
     mock_new_issue.assert_called_with(1, "Issue 1", 1, 2, 3, 4)