Example #1
0
class TestCanon2(unittest.TestCase, CanonEqualTest):
    def setUp(self):
        self.a = Expression()
        self.a.add_data(None, "1")
        self.a.add_data(None, "2")
        self.b = Expression()
        self.b.add_data(None, "2")
        self.b.add_data(None, "1")
Example #2
0
class TestCanon2(unittest.TestCase, CanonEqualTest):
    def setUp(self):
        self.a = Expression()
        self.a.add_data(None, "1")
        self.a.add_data(None, "2")
        self.b = Expression()
        self.b.add_data(None, "2")
        self.b.add_data(None, "1")
Example #3
0
class TestCanon96(unittest.TestCase, CanonNotEqualTest):
    def setUp(self):
        self.a = Expression()
        self.a.add_data(0, "data")
        self.a.decapitate("onelevel")

        self.b = Expression()
        self.b.add_data(0, "data")
        self.b.decapitate("onelevel", reverse=True)
Example #4
0
 def setUp(self):
     A = Expression()
     A.add_data("bla", "somedata")
     A.decapitate("hier")
     B = Expression()
     B.add_data("ble", "otherdata")
     B.decapitate("hier")
     self.a = A + B
     self.b = B + A
Example #5
0
class TestCanon96(unittest.TestCase, CanonNotEqualTest):
    def setUp(self):
        self.a = Expression()
        self.a.add_data(0, "data")
        self.a.decapitate("onelevel")

        self.b = Expression()
        self.b.add_data(0, "data")
        self.b.decapitate("onelevel", reverse=True)
Example #6
0
 def setUp(self):
     A = Expression()
     A.add_data("bla", "somedata")
     A.decapitate("hier")
     B = Expression()
     B.add_data("ble", "otherdata")
     B.decapitate("hier")
     self.a = A + B
     self.b = B + A
Example #7
0
 def setUp(self):
     self.e = Expression()
     self.e.add_data(123, "456")
     other = Expression()
     other.add_data(0, "1")
     other.add_data(2, "3")
     other.decapitate("iuju")
     for _ in xrange(5):
         self.e.decapitate("nouu")
         self.e += other
Example #8
0
 def setUp(self):
     self.e = Expression()
     self.e.add_data(123, "456")
     other = Expression()
     other.add_data(0, "1")
     other.add_data(2, "3")
     other.decapitate("iuju")
     for _ in xrange(5):
         self.e.decapitate("nouu")
         self.e += other
Example #9
0
class TestExpression4(unittest.TestCase, ExpressionTests):
    def setUp(self):
        self.e = Expression()
        self.e.add_data(123, "456")
        other = Expression()
        other.add_data(0, "1")
        other.add_data(2, "3")
        other.decapitate("iuju")
        for _ in xrange(5):
            self.e.decapitate("nouu")
            self.e += other
Example #10
0
class TestExpression4(unittest.TestCase, ExpressionTests):
    def setUp(self):
        self.e = Expression()
        self.e.add_data(123, "456")
        other = Expression()
        other.add_data(0, "1")
        other.add_data(2, "3")
        other.decapitate("iuju")
        for _ in xrange(5):
            self.e.decapitate("nouu")
            self.e += other
Example #11
0
    def setUp(self):
        other = Expression()
        other.add_data(0, "data")
        other.decapitate("onelevel")
        self.a = Expression()
        for _ in xrange(5):
            self.a.decapitate("step")
            self.a += other

        other = Expression()
        other.add_data(0, "data")
        other.decapitate("onelevel", reverse=True)
        self.b = Expression()
        for _ in xrange(5):
            self.b.decapitate("step")
            self.b += other
Example #12
0
    def setUp(self):
        other = Expression()
        other.add_data(0, "data")
        other.decapitate("onelevel")
        self.a = Expression()
        for _ in xrange(5):
            self.a.decapitate("step")
            self.a += other

        other = Expression()
        other.add_data(0, "data")
        other.decapitate("onelevel", reverse=True)
        self.b = Expression()
        for _ in xrange(5):
            self.b.decapitate("step")
            self.b += other
Example #13
0
 def setUp(self):
     A = Expression()
     A.add_data("bla", "somedata")
     A.decapitate("hier")
     B = Expression()
     B.add_data("ble", "otherdata")
     B.decapitate("hier")
     C = A + B
     C.decapitate("hier")
     C += B
     C.decapitate("hier")
     self.a = C + A
     D = B + A
     D.decapitate("hier")
     D += B
     D.decapitate("hier")
     self.b = D + A
Example #14
0
 def setUp(self):
     A = Expression()
     A.add_data("bla", "somedata")
     A.decapitate("hier")
     B = Expression()
     B.add_data("ble", "otherdata")
     B.decapitate("hier")
     C = A + B
     C.decapitate("hier")
     C += B
     C.decapitate("hier")
     self.a = C + A
     D = B + A
     D.decapitate("hier")
     D += B
     D.decapitate("hier")
     self.b = D + A
Example #15
0
class TestExpression3(unittest.TestCase, ExpressionTests):
    def setUp(self):
        self.e = Expression()
        self.e.add_data("key", "1")
        self.e.decapitate(u"µ")
        self.e.add_data("a", "2")
        self.e.add_data("a", "3")
        self.e.add_data(None, None)
        self.e.decapitate(None)
        self.e.add_data(None, None)
Example #16
0
class TestExpression3(unittest.TestCase, ExpressionTests):
    def setUp(self):
        self.e = Expression()
        self.e.add_data("key", "1")
        self.e.decapitate(u"µ")
        self.e.add_data("a", "2")
        self.e.add_data("a", "3")
        self.e.add_data(None, None)
        self.e.decapitate(None)
        self.e.add_data(None, None)
Example #17
0
class TestExpression2(unittest.TestCase, ExpressionTests):
    def setUp(self):
        self.e = Expression()
        self.e.add_data("key", "1")
        self.e.add_data("key", "2")
        self.e.add_data(u"~·~··@↓", None)
        self.e.add_data(None, None)
Example #18
0
class TestExpression2(unittest.TestCase, ExpressionTests):
    def setUp(self):
        self.e = Expression()
        self.e.add_data("key", "1")
        self.e.add_data("key", "2")
        self.e.add_data(u"~·~··@↓", None)
        self.e.add_data(None, None)