def METHOD_NAME(self):
    name_one = Mock()
    name_one.name.return_value = "one"
    name_two = Mock()
    name_two.name.return_value = "two"
    input_list = [name_one, name_two]
    result = metadata_filter(input_list, item="one")
    self.assertIn(name_one, result)
    self.assertNotIn(name_two, result)