示例#1
0
 def test_parse_duration_lt_hour(self):
     """
     Film is shorter than 1 hour
     """
     dur = Film.parse_duration(self.soup2)
     self.assertEqual(dur, datetime.time(0, 30))
示例#2
0
 def test_parse_duration(self):
     dur = Film.parse_duration(self.soup)
     self.assertEqual(dur, datetime.time(2, 16))