def METHOD_NAME(self):
    with capture_connection_state(self.mock_location):
        raise errors.NetworkLocationConnectionFailure()
    self.assertEqual(
        self.mock_location.connection_status, ConnectionStatus.ConnectionFailure
    )
    self.assertEqual(self.mock_location.connection_faults, 1)