from org.nongnu import alph import java U5T = alph.impl.URN5TextSpan def testEquals(): """Test that equality works right """ a = U5T("Foo", 42, "Bar") assert a.equals(U5T("Fo"+"o", 42, "Bar")) assert not a.equals(U5T("Boo", 42, "Bar")) assert not a.equals(U5T("Foo", 43, "Bar")) assert not a.equals(U5T("Foo", 42, "Baa"))