Example #1
0
 def test_import_issue(self, mock_import_issue):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.import_issue('Issue 1', 1, 2, 3, 4)
     mock_import_issue.assert_called_with(1, 'Issue 1', 1, 2, 3, 4)
Example #2
0
 def test_import_issue(self, mock_import_issue):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     project.import_issue("Issue 1", 1, 2, 3, 4)
     mock_import_issue.assert_called_with(1, "Issue 1", 1, 2, 3, 4)
Example #3
0
 def test_import_issue(self, mock_import_issue):
     rm = RequestMaker('/api/v1', 'fakehost', 'faketoken')
     project = Project(rm, id=1)
     project.import_issue('Issue 1', 1, 2, 3, 4)
     mock_import_issue.assert_called_with(1, 'Issue 1', 1, 2, 3, 4)
Example #4
0
 def test_import_issue(self, mock_import_issue):
     rm = RequestMaker("/api/v1", "fakehost", "faketoken")
     project = Project(rm, id=1)
     project.import_issue("Issue 1", 1, 2, 3, 4)
     mock_import_issue.assert_called_with(1, "Issue 1", 1, 2, 3, 4)