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