def METHOD_NAME(self, url, fail_expected, name, default_format, format_list):
    result = self.plugin.prepare_add_topic(url)
    if fail_expected:
        self.assertIsNone(result)
    else:
        self.assertIsNotNone(result)
        self.assertEqual(result['display_name'], name)
        self.assertEqual(result['format'], default_format)
        self.assertEqual(self.plugin.topic_form[0]['content'][1]['options'], format_list)