From 4cb7511aafad4782bcf6c5dcff7331ee493c9d46 Mon Sep 17 00:00:00 2001 From: Kai Zhang Date: Fri, 6 Feb 2015 23:18:17 -0800 Subject: [PATCH] Fix some typos in 6 files sucessful -> "successful" suceeded -> "succeeded" atributes -> "attributes" prefered -> "preferred" transfered -> "transferred" Change-Id: Ib4c74bfd5bb4c42495b732e5fa624d223773d5a7 --- designate/api/v1/__init__.py | 2 +- designate/tests/test_central/test_service.py | 2 +- designate/tests/test_objects/test_base.py | 2 +- designate/tests/test_storage/__init__.py | 2 +- doc/source/diagrams/README | 2 +- doc/source/rest/v2/zones.rst | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/designate/api/v1/__init__.py b/designate/api/v1/__init__.py index 116dea2d..c915d72b 100644 --- a/designate/api/v1/__init__.py +++ b/designate/api/v1/__init__.py @@ -135,7 +135,7 @@ class UUIDConverter(BaseConverter): def load_values(request, valid_keys): - """Load valid atributes from request""" + """Load valid attributes from request""" result = {} error_keys = [] values = request.json diff --git a/designate/tests/test_central/test_service.py b/designate/tests/test_central/test_service.py index c0cc168a..52d10b2c 100644 --- a/designate/tests/test_central/test_service.py +++ b/designate/tests/test_central/test_service.py @@ -1329,7 +1329,7 @@ class CentralServiceTest(CentralTestCase): continue self.assertEqual('192.0.2.255', record.data) - return # Exits this test early as we suceeded + return # Exits this test early as we succeeded raise Exception('Updated record not found') diff --git a/designate/tests/test_objects/test_base.py b/designate/tests/test_objects/test_base.py index 881eebec..dcd9ef68 100644 --- a/designate/tests/test_objects/test_base.py +++ b/designate/tests/test_objects/test_base.py @@ -418,7 +418,7 @@ class DesignateObjectTest(tests.TestCase): # Deepcopy the object c_obj = copy.deepcopy(o_obj) - # Ensure the copy was sucessful + # Ensure the copy was successful self.assertEqual(o_obj.id, c_obj.id) self.assertEqual(o_obj.name, c_obj.name) self.assertEqual(o_obj.nested, c_obj.nested) diff --git a/designate/tests/test_storage/__init__.py b/designate/tests/test_storage/__init__.py index 7c7bea79..b8e634db 100644 --- a/designate/tests/test_storage/__init__.py +++ b/designate/tests/test_storage/__init__.py @@ -1147,7 +1147,7 @@ class StorageTestCase(object): continue self.assertEqual('192.0.2.255', record.data) - return # Exits this test early as we suceeded + return # Exits this test early as we succeeded raise Exception('Updated record not found') diff --git a/doc/source/diagrams/README b/doc/source/diagrams/README index 1ab61224..d442256b 100644 --- a/doc/source/diagrams/README +++ b/doc/source/diagrams/README @@ -1,6 +1,6 @@ Summary ======= -Dia is the prefered multi-platform tool for drawing images. +Dia is the preferred multi-platform tool for drawing images. Initial Dia files were built using dia (0.97.2-15ubuntu1) and dia-shapes (0.6.0-1) diff --git a/doc/source/rest/v2/zones.rst b/doc/source/rest/v2/zones.rst index 14380cd9..92eccc3d 100644 --- a/doc/source/rest/v2/zones.rst +++ b/doc/source/rest/v2/zones.rst @@ -553,7 +553,7 @@ Accept a Transfer Request Accept a zone transfer request. This is called by the project that will own the zone (i.e. the project that will maintain the zone) - Once the API returns "Complete" the zone has been transfered to the new project + Once the API returns "Complete" the zone has been transferred to the new project **Example Request**