From 577473fe687b38c8f01b0c372d6d2563680045b3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Tue, 19 Jan 2010 00:09:57 +0000 Subject: use assert[Not]In where appropriate A patch from Dave Malcolm. --- Lib/test/test_posixpath.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Lib/test/test_posixpath.py') diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 0efe3ff656..9d037e194d 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -481,14 +481,14 @@ class PosixPathTest(unittest.TestCase): self.assertRaises(TypeError, posixpath.normpath) def test_abspath(self): - self.assertTrue("foo" in posixpath.abspath("foo")) - self.assertTrue(b"foo" in posixpath.abspath(b"foo")) + self.assertIn("foo", posixpath.abspath("foo")) + self.assertIn(b"foo", posixpath.abspath(b"foo")) self.assertRaises(TypeError, posixpath.abspath) def test_realpath(self): - self.assertTrue("foo" in realpath("foo")) - self.assertTrue(b"foo" in realpath(b"foo")) + self.assertIn("foo", realpath("foo")) + self.assertIn(b"foo", realpath(b"foo")) self.assertRaises(TypeError, posixpath.realpath) if hasattr(os, "symlink"): -- cgit v1.2.1