summaryrefslogtreecommitdiff
path: root/tests/test_update.py
diff options
context:
space:
mode:
authorJanus <ysangkok@gmail.com>2018-07-23 16:11:00 +0200
committerJanus <ysangkok@gmail.com>2018-07-31 20:10:52 +0200
commit5c5de7bb1ad26d6d6bb82ed2deb64748b46ac599 (patch)
treee4510f90a598e484e57314dc04217259ef34a690 /tests/test_update.py
parent2e6e81852b63eb64b68a08a27cc6e440819b6b58 (diff)
downloaddnspython-5c5de7bb1ad26d6d6bb82ed2deb64748b46ac599.tar.gz
Initial type signatures
Diffstat (limited to 'tests/test_update.py')
-rw-r--r--tests/test_update.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/test_update.py b/tests/test_update.py
index 240da00..56ce31d 100644
--- a/tests/test_update.py
+++ b/tests/test_update.py
@@ -13,10 +13,7 @@
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-try:
- import unittest2 as unittest
-except ImportError:
- import unittest
+import unittest
import binascii
import dns.update
@@ -63,7 +60,7 @@ blaz2 ANY ANY
class UpdateTestCase(unittest.TestCase):
- def test_to_wire1(self):
+ def test_to_wire1(self): # type: () -> None
update = dns.update.Update('example')
update.id = 1
update.present('foo')
@@ -78,7 +75,7 @@ class UpdateTestCase(unittest.TestCase):
update.delete('blaz2')
self.failUnless(update.to_wire() == goodwire)
- def test_to_wire2(self):
+ def test_to_wire2(self): # type: () -> None
update = dns.update.Update('example')
update.id = 1
update.present('foo')
@@ -93,7 +90,7 @@ class UpdateTestCase(unittest.TestCase):
update.delete('blaz2')
self.failUnless(update.to_wire() == goodwire)
- def test_to_wire3(self):
+ def test_to_wire3(self): # type: () -> None
update = dns.update.Update('example')
update.id = 1
update.present('foo')
@@ -108,7 +105,7 @@ class UpdateTestCase(unittest.TestCase):
update.delete('blaz2')
self.failUnless(update.to_wire() == goodwire)
- def test_from_text1(self):
+ 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)