-
-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from tests.conftest import JiraTestCase | ||
|
||
|
||
class ProjectStatusesTests(JiraTestCase): | ||
def test_project_statuses(self): | ||
project_statuses = self.jira.project_statuses(self.project_a) | ||
|
||
# project should have at least one status | ||
self.assertGreater(len(project_statuses), 0) | ||
|
||
# first project status | ||
project_status = project_statuses[0] | ||
# test statues id | ||
self_status_id = self.jira.status(project_status.id).id | ||
self.assertEqual(self_status_id, project_status.id) | ||
# test statues name | ||
self_status_name = self.jira.status(project_status.name).name | ||
self.assertEqual(self_status_name, project_status.name) |