Browse Source

Adding a sample test, hooking up nosetests

David Leonard 10 years ago
parent
commit
3b4c03a524
1 changed files with 8 additions and 0 deletions
  1. 8 0
      hackathon_starter/hackathon/unittests/testcase.py

+ 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)