Ejemplo n.º 1
0
 def test_duration(self):
     # Assert 0.1 or slightly higher.
     v = metrics.duration(time.sleep, 0.1)
     self.assertTrue(v > 0.1)
     print("pattern.metrics.duration()")
Ejemplo n.º 2
0
 def test_duration(self):
     # Assert 0.1 or slightly higher.
     v = metrics.duration(time.sleep, 0.1)
     self.assertTrue(v > 0.1)
     print("pattern.metrics.duration()")
Ejemplo n.º 3
0
 def test_duration(self):
     # Returns 0.1 or slightly higher.
     v = metrics.duration(time.sleep, 0.1)
     self.assertTrue(v > 0.1)