def test__get_origin_data_normal_only(self): tempdir = tempfile.mkdtemp() with open(os.path.join(tempdir, 'snapcraft.yaml'), 'w') as fp: fp.write("") _get_origin_data(tempdir) shutil.rmtree(tempdir)
def test__get_origin_data_normal_only(self): with open(os.path.join(self.tempdir_path, 'snapcraft.yaml'), 'w') as fp: fp.write("") _get_origin_data(self.tempdir_path)
def test__get_origin_data_hidden_only(self): with open(os.path.join(self.tempdir_path, ".snapcraft.yaml"), "w") as fp: fp.write("") _get_origin_data(self.tempdir_path)