diff options
| author | Thomas A Caswell <tcaswell@bnl.gov> | 2019-10-30 19:53:38 -0400 |
|---|---|---|
| committer | Thomas A Caswell <tcaswell@bnl.gov> | 2019-10-30 19:54:53 -0400 |
| commit | 6db5ee1240b0d5cc060a02abe1886413ab432141 (patch) | |
| tree | 768025f1eccd5e5f436f248c21669032a7c4e28f /tests/test_update.py | |
| parent | 58238430084b593802149ca6c144c6d82fddb364 (diff) | |
| download | dnspython-6db5ee1240b0d5cc060a02abe1886413ab432141.tar.gz | |
TST: fix unittest deprecation
failUnless was deprecated in py31
Diffstat (limited to 'tests/test_update.py')
| -rw-r--r-- | tests/test_update.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_update.py b/tests/test_update.py index 8387887..73e7acb 100644 --- a/tests/test_update.py +++ b/tests/test_update.py @@ -75,7 +75,7 @@ class UpdateTestCase(unittest.TestCase): update.delete('bar', 'a', '10.0.0.4') update.delete('blaz', 'a') update.delete('blaz2') - self.failUnless(update.to_wire() == goodwire) + self.assertTrue(update.to_wire() == goodwire) def test_to_wire2(self): # type: () -> None update = dns.update.Update('example') @@ -90,7 +90,7 @@ class UpdateTestCase(unittest.TestCase): update.delete('bar', 'a', '10.0.0.4') update.delete('blaz', 'a') update.delete('blaz2') - self.failUnless(update.to_wire() == goodwire) + self.assertTrue(update.to_wire() == goodwire) def test_to_wire3(self): # type: () -> None update = dns.update.Update('example') @@ -105,13 +105,13 @@ class UpdateTestCase(unittest.TestCase): update.delete('bar', 'a', '10.0.0.4') update.delete('blaz', 'a') update.delete('blaz2') - self.failUnless(update.to_wire() == goodwire) + self.assertTrue(update.to_wire() == goodwire) def test_from_text1(self): # type: () -> None update = dns.message.from_text(update_text) w = update.to_wire(origin=dns.name.from_text('example'), want_shuffle=False) - self.failUnless(w == goodwire) + self.assertTrue(w == goodwire) if __name__ == '__main__': unittest.main() |
