summaryrefslogtreecommitdiff
path: root/subdir/foo_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'subdir/foo_tests.py')
-rw-r--r--subdir/foo_tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/subdir/foo_tests.py b/subdir/foo_tests.py
new file mode 100644
index 0000000..a8a9740
--- /dev/null
+++ b/subdir/foo_tests.py
@@ -0,0 +1,11 @@
+import unittest, foo
+
+class FooTests(unittest.TestCase):
+
+ def testTrue(self):
+ f = foo.Foo()
+ self.failUnlessEqual(f.foo(True), True)
+
+ def testFalse(self):
+ f = foo.Foo()
+ self.failUnlessEqual(f.foo(False), False)