mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-21 19:23:05 +00:00
pos
This commit is contained in:
parent
8439451b0d
commit
60e40bbe3d
1 changed files with 5 additions and 2 deletions
|
@ -249,8 +249,11 @@ def test_server_account(plex):
|
|||
if account.mappingError != "unreachable":
|
||||
if account.privateAddress is not None:
|
||||
# This seems to fail way to often..
|
||||
#assert re.match(utils.REGEX_IPADDR, account.privateAddress)
|
||||
assert len(account.privateAddress)
|
||||
if len(account.privateAddress):
|
||||
assert re.match(utils.REGEX_IPADDR, account.privateAddress)
|
||||
else:
|
||||
assert account.privateAddress == ""
|
||||
|
||||
assert int(account.privatePort) >= 1000
|
||||
assert re.match(utils.REGEX_IPADDR, account.publicAddress)
|
||||
assert int(account.publicPort) >= 1000
|
||||
|
|
Loading…
Reference in a new issue