def METHOD_NAME(self):
    first_attempt = {
        "challenge": "test_challenge",
        "attempt": "print('Hello World')",
        "status": "passed",
        "programming_language": "python",
    }
    second_attempt = {
        "challenge": "test_challenge",
        "attempt": "print('Hello World')",
        "status": "started",
        "programming_language": "python",
    }
    url = reverse("plugging_it_in:save_attempt")
    # First save is a passed attempt
    self.client.post(url, json.dumps(first_attempt), content_type='application/json')
    # Second save is a started attempt
    self.client.post(url, json.dumps(second_attempt), content_type='application/json')
    # The first attempt should be retained since it has been checked
    self.assertEqual(
        self.client.session['saved_attempts']['test_challenge']['python'],
        {
            "status": "passed",
            "code": "print('Hello World')"
        }
    )