summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDariusz Smigiel <dsmigiel@redhat.com>2022-06-27 07:20:06 -0700
committerDariusz Smigiel <dsmigiel@redhat.com>2022-06-27 07:20:06 -0700
commit9aa45aaff0cdeab258d18c025cf66e9bdba529c0 (patch)
tree2b85ea4fee447da6223e5be87deeb3ea94b7e5f5 /tests
parentf52f641d763e4958d108e875e0cd6fca50d110f2 (diff)
downloadoauthlib-9aa45aaff0cdeab258d18c025cf66e9bdba529c0.tar.gz
Restored test for port 0.
Diffstat (limited to 'tests')
-rw-r--r--tests/oauth1/rfc5849/test_signatures.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/oauth1/rfc5849/test_signatures.py b/tests/oauth1/rfc5849/test_signatures.py
index f0e1809..2d4735e 100644
--- a/tests/oauth1/rfc5849/test_signatures.py
+++ b/tests/oauth1/rfc5849/test_signatures.py
@@ -348,6 +348,7 @@ class SignatureTests(TestCase):
self.assertRaises(ValueError, base_string_uri, 'http://:8080')
# Port is not a valid TCP/IP port number
+ self.assertRaises(ValueError, base_string_uri, 'http://eg.com:0')
self.assertRaises(ValueError, base_string_uri, 'http://eg.com:-1')
self.assertRaises(ValueError, base_string_uri, 'http://eg.com:65536')
self.assertRaises(ValueError, base_string_uri, 'http://eg.com:3.14')