Exemple #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")
Exemple #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")
Exemple #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)
Exemple #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
Exemple #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)
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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
Exemple #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)
Exemple #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)
Exemple #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)
Exemple #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)