def test_near_with_things_and_my_location(self, mock_search_near): things = 'restaurants' city = 'me' expected_city = 0 data = "{} | {}".format(things, city) near_me.main(data) mock_search_near.assert_called_once_with(things, expected_city)
def do_near(self, data): """ finds places near you -- Examples: restaurants near me museums near the eiffel tower """ near_me.main(data)
def do_near(self, data): """ Jarvis can find what is near you! -- Examples: restaurants near me museums near the eiffel tower """ near_me.main(data)
def do_near(self, data): """Jarvis can find what is near you!""" near_me.main(data)
def test_what_to_search_where_is_passed_to_mapps(self, mock_search_near): data = "{} | {}".format(self.things, self.city) near_me.main(data) mock_search_near.assert_called_once_with(self.things, self.city)
def test_near_with_things_and_empty_space(self, mock_search_near): things = 'bars' city = '' data = "{} | {}".format(things, city) near_me.main(data) mock_search_near.assert_called_once_with(things, city)
def test_near_with_things_and_specific_city(self, mock_search_near): things = 'charities' city = 'Valencia' data = "{} | {}".format(things, city) near_me.main(data) mock_search_near.assert_called_once_with(things, city)