def METHOD_NAME(self):
    plugin = Plugin()
    plugin.set_name("my-plugin")
    self.assertEqual("my-plugin", plugin.name())
    plugin.set_filename("filename.so")
    self.assertEqual("filename.so", plugin.filename())
    # The expected plugin output string.
    expected = """<plugin name='my-plugin' filename='filename.so'/>\n"""
    self.assertEqual(expected, str(plugin))