Check the uniqueness of the service name ignoring case.

When the service name changes the email_from changes to.
Renamed find_all_service_names to find_all_service_names_lower.
This commit is contained in:
Rebecca Law
2016-03-31 10:26:03 +01:00
parent ab50ed6368
commit 1871243cc8
7 changed files with 25 additions and 29 deletions

View File

@@ -142,7 +142,7 @@ class ServiceAPIClient(NotificationsAPIClient):
endpoint = "/service/{0}/template/{1}".format(service_id, template_id)
return self.delete(endpoint)
def find_all_service_names(self, user_id=None):
def find_all_service_names_lower(self, user_id=None):
resp = self.get_services(user_id)
return [x['name'].lower() for x in resp['data']]