def METHOD_NAME(self, tmp_work_path, import_statement, method, params):
    self.create_setuppy(import_statement, method, params)
    expected = ExtractedMetadata(**params)
    actual = setuppy.extract("setup.py", workdir=".")
    assert str(actual) == str(expected)
    assert actual == expected