We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 737edcf commit 36c2af0Copy full SHA for 36c2af0
1 file changed
fs/test.py
@@ -407,6 +407,12 @@ def test_geturl(self):
407
else:
408
self.assertTrue(self.fs.hasurl('foo'))
409
410
+ def test_geturl_purpose(self):
411
+ """Check an unknown purpose raises a NoURL error"""
412
+ self.fs.create('foo')
413
+ with self.assertRaises(errors.NoURL):
414
+ self.fs.geturl('foo', purpose='__nosuchpurpose__')
415
+
416
def test_invalid_chars(self):
417
# Test invalid path method.
418
with self.assertRaises(errors.InvalidCharsInPath):
0 commit comments