':type content: str'

def _write_config(self, content):

    prefix = ('%s-' % os.path.splitext(os.path.basename(self.config_static_path))[0])
    with tempfile.NamedTemporaryFile(dir=self.TEST_DIR, prefix=prefix, suffix=self.config_extension, delete=False) as config_fd:
        filename = os.path.join(self.TEST_DIR, os.path.basename(config_fd.name))
        self.config_path = config_fd.name
        self.remove_config = True
        self._set_cloud_config('config_path', filename)
        display.info(('>>>    Config:    %s\n%s' % (filename, content.strip())), verbosity=3)
        config_fd.write(content.encode('utf-8'))
        config_fd.flush()
