Beispiel #1
0
 def test_get_simple_html_page(self):
     milestones = list(ghmiles.get_milestones_from_labels('bartdag/py4j',
             ['v0.2','v0.1']))
     html = ghmiles.get_simple_html_page(milestones, 'Py4J')
     self.assertTrue(html.startswith('<!DOCTYPE html PUBLIC'))
     self.assertTrue(html.endswith('</html>'))
Beispiel #2
0
 def test_get_milestones_from_labels(self):
     milestones = list(ghmiles.get_milestones_from_labels('bartdag/py4j',
             ['v0.2','v0.4']))
     self.assertEqual(milestones[0].total, 12)
     self.assertEqual(milestones[1].total, 14)