瀏覽代碼

make sure that we only handle hash urls..

main
John-Mark Gurney 4 年之前
父節點
當前提交
69472c666c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      casimport/__init__.py

+ 4
- 0
casimport/__init__.py 查看文件

@@ -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…
取消
儲存