def test1(self):
"""Tests that files can be loaded by basename"""
kio = KlustaKwikIO(filename=os.path.join(self.dirname, 'basename'))
if not BaseTestIO.use_network:
raise unittest.SkipTest("Requires download of data from the web")
fetfiles = kio._fp.read_filenames('fet')
self.assertEqual(len(fetfiles), 2)
self.assertEqual(os.path.abspath(fetfiles[0]),
os.path.abspath(os.path.join(self.dirname,
'basename.fet.0')))
self.assertEqual(os.path.abspath(fetfiles[1]),
os.path.abspath(os.path.join(self.dirname,
'basename.fet.1')))
评论列表
文章目录