def test_tarfile_open_repeated_different_path(): path1 = resource_filename(__name__, 'fixtures/example.tar') path2 = resource_filename(__name__, 'fixtures/example2.tar') tf1 = tarfile_open(path1) tf2 = tarfile_open(path2) assert tf1 is not tf2
def test_tarfile_open_repeated_same_path(): path = resource_filename(__name__, 'fixtures/example.tar') tf1 = tarfile_open(path) tf2 = tarfile_open(path) assert tf1 is tf2