diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2025-05-22 10:42:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-22 10:42:50 (GMT) |
commit | db98e0bb127c469842dc119d23e5daacd23862cc (patch) | |
tree | 5628e04625c93f2e5bde25aa29dedb3c154a0dec /Lib/test/test_pulldom.py | |
parent | d5f7e80d4407655919b32bbd5746b23af174bc5b (diff) | |
download | cpython-db98e0bb127c469842dc119d23e5daacd23862cc.zip cpython-db98e0bb127c469842dc119d23e5daacd23862cc.tar.gz cpython-db98e0bb127c469842dc119d23e5daacd23862cc.tar.bz2 |
[3.14] gh-71339: Use new assertion methods in tests (GH-129046) (GH-134498)
(cherry picked from commit 2602d8ae981c4bae1cada2c174b367d97f712efb)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Lib/test/test_pulldom.py')
-rw-r--r-- | Lib/test/test_pulldom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pulldom.py b/Lib/test/test_pulldom.py index 6dc51e4..3c8ed25 100644 --- a/Lib/test/test_pulldom.py +++ b/Lib/test/test_pulldom.py @@ -46,7 +46,7 @@ class PullDOMTestCase(unittest.TestCase): items = pulldom.parseString(SMALL_SAMPLE) evt, node = next(items) # Just check the node is a Document: - self.assertTrue(hasattr(node, "createElement")) + self.assertHasAttr(node, "createElement") self.assertEqual(pulldom.START_DOCUMENT, evt) evt, node = next(items) self.assertEqual(pulldom.START_ELEMENT, evt) @@ -192,7 +192,7 @@ class ThoroughTestCase(unittest.TestCase): evt, node = next(pd) self.assertEqual(pulldom.START_DOCUMENT, evt) # Just check the node is a Document: - self.assertTrue(hasattr(node, "createElement")) + self.assertHasAttr(node, "createElement") if before_root: evt, node = next(pd) |