Prechádzať zdrojové kódy

Adding a sample test, hooking up nosetests

David Leonard 10 rokov pred
rodič
commit
3b4c03a524

+ 8 - 0
hackathon_starter/hackathon/unittests/testcase.py

@@ -0,0 +1,8 @@
+import unittest
+
+def fun(x):
+    return x + 1
+
+class MyTest(unittest.TestCase):
+    def test(self):
+        self.assertEqual(fun(3), 4)