'Test creating environment in an existing directory.'

def test_overwrite_existing(self):

    self.create_contents(self.ENV_SUBDIRS, 'foo')
    venv.create(self.env_dir)
    for subdirs in self.ENV_SUBDIRS:
        fn = os.path.join(self.env_dir, *(subdirs + ('foo',)))
        self.assertTrue(os.path.exists(fn))
        with open(fn, 'rb') as f:
            self.assertEqual(f.read(), 'Still    here?')
    builder = venv.EnvBuilder(clear=True)
    builder.create(self.env_dir)
    for subdirs in self.ENV_SUBDIRS:
        fn = os.path.join(self.env_dir, *(subdirs + ('foo',)))
        self.assertFalse(os.path.exists(fn))
