Browse Source

make sure that we only handle hash urls..

main
John-Mark Gurney 4 years ago
parent
commit
69472c666c
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      casimport/__init__.py

+ 4
- 0
casimport/__init__.py View File

@@ -689,3 +689,7 @@ class Test(unittest.TestCase):
# that when read raises an exception
with self.assertRaises(ValueError):
fdcas.fetch_data(urllib.parse.urlparse('hash://sha256/0000'))

# that when passed an invalid url
with self.assertRaises(ValueError):
fdcas.fetch_data(urllib.parse.urlparse('https://sha256/0000'))

Loading…
Cancel
Save