@@ -0,0 +1,385 @@
+import sys%0Asys.path.append('..')%0Aimport unittest%0Aimport io%0Aimport re%0A%0Afrom helper import timer%0A%0Aclass HelperTestCase(unittest.TestCase):%0A%0A    def test_timer(self):%0A        import time%0A        log = io.StringIO()%0A        sys.stdout = log%0A        timer(time.sleep)(1)%0A        elapsed = re.search('%5Cd+', log.getvalue()%0A                    ).group()%0A        self.assertEqual('1', elapsed)%0A

add test code for helper.py