def test_open_file(self): with bwpy.File(get_sample_path(samples.brw), "r") as file: pass
def open_sample_copy(sample): return bwpy.File(get_sample_path(sample), mode="a", driver="core", backing_store=False)
def test_bxr_type(self): with bwpy.File(get_sample_path(samples.bxr), "r") as file: self.assertEqual("bxr", file.type)
def open_sample(sample, *args, **kwargs): return bwpy.File(get_sample_path(sample), *args, **kwargs)