def test_parse_mks_response_for_mks_id(self): self.assertEquals( MKSIntegrity()._parse_mks_response_for_mks_id( self._example_mks_response), 732916) self.assertEquals( MKSIntegrity()._parse_mks_response_for_mks_id( self._example_mks_response_with_decoded_html_entities), 732916)
def begin_work_queue(self): AbstractQueue.begin_work_queue(self) # FIXME: We should find a better place to put this code so that we instantiate # a RIMBugzilla and MKSIntegrity instance with the dryrun paramater instead of # overridding the passed Bugzilla instance in self.tool.bugs. dryrun = self.tool.bugs.dryrun; self.tool.bugs = RIMBugzilla(dryrun=dryrun) self.mksintegrity = MKSIntegrity(dryrun=dryrun)
def test_create_mks_request(self): mks_request = MKSIntegrity()._create_mks_request( bug_title="Example Bug", bug_description="This is an example bug.", component="Browser", sub_component="WebKit", build_type="Development/Test", build_version="n/a", component_targeted_release="6.0.0", has_ui_impact="No", reproducible="Yes", frequency_of_occurrence="Frequent", issue_type="", handheld_discovered_on="ExampleDevice", reporter="a_person", reporter_email="*****@*****.**", issue_owner="a_person", assignee="+Assign Developer") self.assertEquals(mks_request, self._expected_mks_request)