Skip to content

Commit 68f4c1c

Browse files
committed
add cover
1 parent a0afb31 commit 68f4c1c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/test_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)