From e35a860280ddff5337dd85812156617cc399bdcf Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 27 2015 16:02:43 +0000 Subject: Add unit-tests for get_issue_statuses --- diff --git a/tests/test_progitlib.py b/tests/test_progitlib.py index a9be78e..3e1ceef 100644 --- a/tests/test_progitlib.py +++ b/tests/test_progitlib.py @@ -718,6 +718,12 @@ class ProgitLibtests(tests.Modeltests): tags = progit.lib.get_tags_of_project(self.session, repo) self.assertEqual([tag.tag for tag in tags], []) + def test_get_issue_statuses(self): + """ Test the get_issue_statuses of progit.lib. """ + statuses = progit.lib.get_issue_statuses(self.session) + self.assertEqual( + statuses, ['Open', 'Invalid', 'Insufficient data', 'Fixed']) + if __name__ == '__main__': SUITE = unittest.TestLoader().loadTestsFromTestCase(ProgitLibtests)