Example #1
0
 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"]))
Example #2
0
 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)
Example #3
0
 def test_data_parse(self):
     for p in self.projects:
         parser = IssuesParser()
         parser.parse(self.data[p])
         self._parser_equiv_(p, parser)
Example #4
0
 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)