def METHOD_NAME(self):
    """Test generate_offlineimap_config command."""
    path = os.path.join(self.workdir, "offlineimap.conf")
    call_command("generate_offlineimap_config", "--output", path)
    self.assertTrue(os.path.exists(path))
    conf = configparser.ConfigParser()
    conf.read(path)
    self.assertTrue(conf.has_section("Account user@test.com"))