

@patch.object(location, 'geocode_location')
def test_get_location_without_coords(self, mock):
    'Test get_location without coordinates.'
    mock.assertEqual(mock.call_count, 0)
    location.get_coordinates('awooga!')
    self.assertEqual(mock.call_count, 1)

dataset/ETHPy150Open ofa/connect/open_connect/connect_core/tests/test_utils_location.py GetLocationTest.test_get_location_without_coords/VarMisuse@24/44 `self`->`mock`