aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/filter_test.py
blob: 54da810cca1b0e449985aa5a2236077230ecf84a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()