Fix test_url_at

`lspace_test()` has a parameter called scheme with the default value `http`. It
is called in a nested for loop, but the scheme from the inner for loop is
just ignored.
This commit is contained in:
Luflosi 2019-06-05 18:32:19 +02:00
parent fe329cb4ab
commit 2751dbdb94
No known key found for this signature in database
GPG Key ID: 14140F703B7D8362

View File

@ -257,7 +257,7 @@ class TestDataTypes(BaseTest):
self.ae(lf.url_start_at(i), n)
for i in range(7):
for scheme in 'http https ftp file'.split():
lspace_test(i)
lspace_test(i, scheme)
l3 = create('b https://testing.me a')
for s in (0, 1, len(l3) - 1, len(l3) - 2):
self.ae(l3.url_start_at(s), len(l3), 'failed with start at: %d' % s)