Use "x in y" instead of y.find(x) != -1.

This commit is contained in:
Ezio Melotti 2010-03-17 14:22:34 +00:00
parent d80b4bfd0b
commit 187f93d986
4 changed files with 4 additions and 4 deletions

View file

@ -433,7 +433,7 @@ class MinidomTest(unittest.TestCase):
string1 = repr(el)
string2 = str(el)
self.confirm(string1 == string2)
self.confirm(string1.find("slash:abc") != -1)
self.confirm("slash:abc" in string1)
dom.unlink()
def testAttributeRepr(self):