示例#1
0
 def test_mul(self, formatted, span_format):
     s = Span.parse(span_format)
     self.assertEquals(formatted, str(s))
示例#2
0
 def test_add(self, times, span_format):
     s = Span.parse(span_format) + 100
     self.assertEquals(map(lambda t: t + 100, times), map(int, (s.stime, s.etime)))
示例#3
0
 def test_mul(self, times, span_format):
     s = Span.parse(span_format) * 4
     self.assertEquals(map(lambda t: t * 4, times), map(int, (s.stime, s.etime)))
示例#4
0
 def test_parse(self, times, span_format):
     s = Span.parse(span_format)
     self.assertEquals(times, map(int, (s.stime, s.etime)))