Beispiel #1
0
 def test_mul(self, formatted, span_format):
     s = Span.parse(span_format)
     self.assertEquals(formatted, str(s))
Beispiel #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)))
Beispiel #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)))
Beispiel #4
0
 def test_parse(self, times, span_format):
     s = Span.parse(span_format)
     self.assertEquals(times, map(int, (s.stime, s.etime)))