We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0afb31 commit 68f4c1cCopy full SHA for 68f4c1c
tests/test_client.py
@@ -0,0 +1,12 @@
1
+from onvif.client import strip_user_pass_url, obscure_user_pass_url
2
+
3
4
+def test_strip_user_pass_url():
5
+ assert strip_user_pass_url("http://1.2.3.4/?user=foo&pass=bar") == "http://1.2.3.4/"
6
7
8
+def test_obscure_user_pass_url():
9
+ assert (
10
+ obscure_user_pass_url("http://1.2.3.4/?user=foo&pass=bar")
11
+ == "http://1.2.3.4/?user=********&pass=********"
12
+ )
0 commit comments