'Test that the RenewableCert constructor will complain if
the renewal configuration file doesn\'t end in ".conf"'

def test_renewal_bad_config(self):

    from certbot import storage
    broken = os.path.join(self.config.config_dir, 'broken.conf')
    with open(broken, 'w') as f:
        f.write('[No    closing    bracket    for    you!')
    self.assertRaises(errors.CertStorageError, storage.RenewableCert, broken, self.config)
    os.unlink(broken)
    self.assertRaises(errors.CertStorageError, storage.RenewableCert, 'fun', self.config)
