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