Skip to content

Commit

Permalink
add host:port test to channel
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmartian committed Dec 17, 2020
1 parent 54fa04d commit d58e57a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/models/test_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,19 @@ def test_channel_alias_channels(self):
]


def test_channel_host_port(self):
channel = Channel('https://192.168.0.0:8000')
assert channel.channel_name == ""
assert channel.channel_location == "192.168.0.0:8000"
assert channel.platform is None
assert channel.package_filename is None
assert channel.canonical_name == "https://192.168.0.0:8000"
assert channel.urls() == [
'https://192.168.0.0:8000/%s' % context.subdir,
'https://192.168.0.0:8000/noarch',
]


def test_channel_cache(self):
Channel._reset_state()
assert len(Channel._cache_) == 0
Expand Down

0 comments on commit d58e57a

Please sign in to comment.