def METHOD_NAME(self):
    """
    Test xattr.delete
    """
    # Clear existing attributes
    self.assertTrue(self.run_function("xattr.clear", [self.test_file]))
    # Write some attributes
    self.assertTrue(
        self.run_function(
            "xattr.write", [self.test_file, "spongebob", "squarepants"]
        )
    )
    self.assertTrue(
        self.run_function("xattr.write", [self.test_file, "squidward", "plankton"])
    )
    self.assertTrue(
        self.run_function("xattr.write", [self.test_file, "crabby", "patty"])
    )
    # Delete an attribute
    self.assertTrue(
        self.run_function("xattr.delete", [self.test_file, "squidward"])
    )
    # Make sure it was actually deleted
    self.assertEqual(
        self.run_function("xattr.list", [self.test_file]),
        {"spongebob": "squarepants", "crabby": "patty"},
    )
    # Test file not found
    self.assertEqual(
        self.run_function("xattr.delete", [self.no_file, "spongebob"]),
        "ERROR: File not found: {}".format(self.no_file),
    )
    # Test attribute not found
    self.assertEqual(
        self.run_function("xattr.delete", [self.test_file, "patrick"]),
        "ERROR: Attribute not found: patrick",
    )