Exemplo n.º 1
0
 def testStop(self):
     c = benchmark.Change()
     c.stop(filepath.FilePath('.'), 'hda', 'hda1')
     self.failUnless(isinstance(c.after, benchmark.ResourceSnapshot))
Exemplo n.º 2
0
 def testStart(self):
     c = benchmark.Change()
     c.start(filepath.FilePath('.'), 'hda', 'hda1')
     self.assertTrue(isinstance(c.before, benchmark.ResourceSnapshot))