def test_opener(self): """Test use of FS URLs.""" multi_fs = MultiFS() with self.assertRaises(TypeError): multi_fs.add_fs("foo", 5) multi_fs.add_fs("f1", "mem://") multi_fs.add_fs("f2", "temp://") self.assertIsInstance(multi_fs.get_fs("f1"), MemoryFS)
def test_opener(self): """Test use of FS URLs.""" multi_fs = MultiFS() with self.assertRaises(TypeError): multi_fs.add_fs(u'foo', 5) multi_fs.add_fs(u'f1', u'mem://') multi_fs.add_fs(u'f2', u'temp://') self.assertIsInstance(multi_fs.get_fs(u'f1'), MemoryFS)