def METHOD_NAME(self):
    # Given
    test_code = "abc123"
    expected_access_token = "access-token"
    self.mock_requests.post.return_value = mock.MagicMock(
        text=f"access_token={expected_access_token}&scope=user&token_type=bearer",
        status_code=200,
    )
    # When
    github_user = GithubUser(
        test_code,
        client_id=self.test_client_id,
        client_secret=self.test_client_secret,
    )
    # Then
    assert github_user.access_token == expected_access_token
    assert self.mock_requests.post.call_count == 1
    request_calls = self.mock_requests.post.call_args
    assert request_calls[1]["data"]["code"] == test_code