class TestBase(unittest.TestCase):

    def setUp(self):
        self.sw = StopWatch()
        self.sw.start()

    def tearDown(self):
        self.sw.stop()
        sys.stdout.write('[PERF {}] '.format(colored(self.sw.pretty(6), 'blue')))
        sys.stdout.flush()
 def setUp(self):
     self.sw = StopWatch()
     self.sw.start()