1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-22 00:53:24 +00:00
scrapy/tests/test_urlparse_monkeypatches.py
2014-07-30 19:45:08 -03:00

13 lines
377 B
Python

from six.moves.urllib.parse import urlparse
import unittest
class UrlparseTestCase(unittest.TestCase):
def test_s3_url(self):
p = urlparse('s3://bucket/key/name?param=value')
self.assertEquals(p.scheme, 's3')
self.assertEquals(p.hostname, 'bucket')
self.assertEquals(p.path, '/key/name')
self.assertEquals(p.query, 'param=value')