def METHOD_NAME(self):
    """
    Tests assigning a sysctl value and applying the change to system
    """
    # Always start with a clean/known sysctl.conf state
    if os.path.isfile(CONFIG):
        os.remove(CONFIG)
    try:
        rand = random.randint(0, 500)
        while rand == self.val:
            rand = random.randint(0, 500)
        self.run_function("sysctl.persist", [ASSIGN_CMD, rand], apply_change=True)
        info = int(self.run_function("sysctl.get", [ASSIGN_CMD]))
        self.assertEqual(info, rand)
    except CommandExecutionError:
        os.remove(CONFIG)
        raise