def test_launchpad_attributes(self):
     bugs_list = filter_bugs(self.correct_commits[0])
     self.bugs = prepare_mock(bugs_list)
     for bug_instance in launchpad_lookup(self.launchpad, self.bugs.keys()):
         self.assertTrue(isinstance(bug_instance.title, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].date_fix_committed, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].assignee.name, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].web_link, str))
Beispiel #2
0
 def test_launchpad_attributes(self):
     bugs_list = filter_bugs(self.correct_commits[0])
     self.bugs = prepare_mock(bugs_list)
     for bug_instance in launchpad_lookup(self.launchpad, self.bugs.keys()):
         self.assertTrue(isinstance(bug_instance.title, str))
         self.assertTrue(
             isinstance(bug_instance.bug_tasks[0].date_fix_committed, str))
         self.assertTrue(
             isinstance(bug_instance.bug_tasks[0].assignee.name, str))
         self.assertTrue(isinstance(bug_instance.bug_tasks[0].web_link,
                                    str))
 def test_commits_output_bugs(self):
     for commit in self.correct_commits:
         # preparing bugs for mocker
         self.bugs = prepare_mock(commit)
         for bug in launchpad_lookup(self.launchpad, self.bugs):
             self.assertTrue(isinstance(bug, mock.Mock))
 def test_launchpad_instances(self):
     bugs_list = filter_bugs(self.multiple_bugs_commit[0])
     self.bugs = prepare_mock(bugs_list)
     self.assertEquals(len(launchpad_lookup(self.launchpad,
             self.bugs.keys())), 3)
Beispiel #5
0
 def test_commits_output_bugs(self):
     for commit in self.correct_commits:
         # preparing bugs for mocker
         self.bugs = prepare_mock(commit)
         for bug in launchpad_lookup(self.launchpad, self.bugs):
             self.assertTrue(isinstance(bug, mock.Mock))
Beispiel #6
0
 def test_launchpad_instances(self):
     bugs_list = filter_bugs(self.multiple_bugs_commit[0])
     self.bugs = prepare_mock(bugs_list)
     self.assertEquals(
         len(launchpad_lookup(self.launchpad, self.bugs.keys())), 3)