aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/filter_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/filter_test.py')
-rw-r--r--tests/samplebinding/filter_test.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/samplebinding/filter_test.py b/tests/samplebinding/filter_test.py
new file mode 100644
index 000000000..54da810cc
--- /dev/null
+++ b/tests/samplebinding/filter_test.py
@@ -0,0 +1,18 @@
+
+import unittest
+
+from sample import Data, Intersection, Union
+
+class TestFilters(unittest.TestCase):
+
+ def testAnd(self):
+
+ f1 = Data(Data.Name, "joe")
+ f2 = Union()
+
+ inter = f1 & f2
+
+ self.assertEqual(type(inter), Intersection)
+
+if __name__ == '__main__':
+ unittest.main()