def testEqualsWithMismatchedListLength(self):
     wiz = TreeWizard(self.adaptor, self.tokens)
     t1 = wiz.create("(A B C)")
     t2 = wiz.create("(A B)")
     same = wiz.equals(t1, t2)
     self.failUnless(not same)
 def testEqualsWithText(self):
     wiz = TreeWizard(self.adaptor, self.tokens)
     t1 = wiz.create("(A B[foo] C)")
     t2 = wiz.create("(A B[foo] C)")
     same = wiz.equals(t1, t2)
     self.failUnless(same)
Beispiel #3
0
 def testEqualsWithMismatchedList(self):
     wiz = TreeWizard(self.adaptor, self.tokens)
     t1 = wiz.create("(A B C)")
     t2 = wiz.create("(A B A)")
     same = wiz.equals(t1, t2)
     self.assertFalse(same)
Beispiel #4
0
 def testEquals(self):
     wiz = TreeWizard(self.adaptor, self.tokens)
     t1 = wiz.create("(A B C)")
     t2 = wiz.create("(A B C)")
     same = wiz.equals(t1, t2)
     self.assertTrue(same)
Beispiel #5
0
 def testEqualsWithMismatchedList(self):
     wiz = TreeWizard(self.adaptor, self.tokens)
     t1 = wiz.create("(A B C)")
     t2 = wiz.create("(A B A)")
     same = wiz.equals(t1, t2)
     self.assertFalse(same)
Beispiel #6
0
 def testEquals(self):
     wiz = TreeWizard(self.adaptor, self.tokens)
     t1 = wiz.create("(A B C)")
     t2 = wiz.create("(A B C)")
     same = wiz.equals(t1, t2)
     self.assertTrue(same)