def test_wrong_filepath_constructor(self): f = File(filepath='/non-exist-file') f.make_tuple()
def test_wrong_filepath(self): f = File() f.path = '/non-exist-file' f.make_tuple()
def test_make_tuple(self): f = File(filepath=path.join(testdatadir, 'Lenna.png')) f.make_tuple()