test_url unit test fix

This commit is contained in:
Lex Berezhny 2019-05-04 23:05:47 -04:00
parent 2e6297f834
commit a459ee34be

View file

@ -13,7 +13,10 @@ class TestURLParsing(unittest.TestCase):
def _assert_url(self, url_string, **kwargs):
url = URL.parse(url_string)
self.assertEqual(url_string, str(url))
if url_string.startswith('lbry://'):
self.assertEqual(url_string, str(url))
else:
self.assertEqual(f'lbry://{url_string}', str(url))
present = {}
for key in kwargs:
for segment_name in self.segments: