

def test_clean(self):
    tmp_dir = self.mkdtemp()
    f1 = os.path.join(tmp_dir, 'one')
    f2 = os.path.join(tmp_dir, 'two')
    self.write_file(f1, 'xxx')
    self.write_file(f2, 'xxx')
    for f in (f1, f2):
        self.assertTrue(os.path.exists(f))
    (pkg_dir, dist) = self.create_dist()
    cmd = config(dist)
    cmd._clean(f1, f2)
    for f in (f1, f2):
        self.assertTrue((not os.path.exists(f)))

dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/distutils/tests/test_config_cmd.py ConfigTestCase.test_clean/original