def test_get_issue(self): for p in self.projects: parser = IssuesParser(self.data[p]) json_list = json.loads(self.data[p]) json_dict = {} for l in json_list: self.assertEquals(l, parser.get_issue(l["number"]))
def test_github_parse(self): gh = GitHub() for p in self.projects: gh.data = self.data[p] parser = IssuesParser() parser.parse(gh) self._parser_equiv_(p, parser)
def test_data_parse(self): for p in self.projects: parser = IssuesParser() parser.parse(self.data[p]) self._parser_equiv_(p, parser)
def test_initialization(self): for p in self.projects: parser = IssuesParser(self.data[p]) self.assertEquals(self.data[p], parser.get_flat_data()) self._parser_equiv_(p, parser)