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