Fix typo a-an, than-then, wrong character case

TrivialFix

Change-Id: I008361555552d5145c7536168532b9da8ba87d15
This commit is contained in:
Duong Ha-Quang
2016-10-04 02:28:04 +00:00
parent 277dcaea70
commit e47a5dbf2b
3 changed files with 10 additions and 10 deletions
@@ -164,7 +164,7 @@ class ApiV1RecordsTest(ApiV1Test):
# Add a junk property
fixture['junk'] = 'Junk Field'
# Create a record, Ensuring it fails with a 400
# Create a record, ensuring it fails with a 400
self.post('domains/%s/records' % self.zone['id'], data=fixture,
status_code=400)
@@ -208,7 +208,7 @@ class ApiV1RecordsTest(ApiV1Test):
fixture['description'] = "utf-8:2H₂+O₂⇌2H₂O,R=4.7kΩ,⌀200mm∮E⋅da=Q,n" \
",∑f(i)=∏g(i),∀x∈ℝ:⌈x⌉"
# Create a record, Ensuring it succeeds
# Create a record, ensuring it succeeds
self.post('domains/%s/records' % self.zone['id'], data=fixture)
def test_create_record_description_too_long(self):
@@ -221,7 +221,7 @@ class ApiV1RecordsTest(ApiV1Test):
# Add a description that is too long
fixture['description'] = "x" * 161
# Create a record, Ensuring it Fails with a 400
# Create a record, ensuring it fails with a 400
self.post('domains/%s/records' % self.zone['id'], data=fixture,
status_code=400)
@@ -279,7 +279,7 @@ class ApiV1RecordsTest(ApiV1Test):
# Set the TTL to a negative value
fixture['ttl'] = -1
# Create a record, Ensuring it Fails with a 400
# Create a record, ensuring it fails with a 400
self.post('domains/%s/records' % self.zone['id'], data=fixture,
status_code=400)
@@ -293,7 +293,7 @@ class ApiV1RecordsTest(ApiV1Test):
# Set the TTL to a value zero
fixture['ttl'] = 0
# Create a record, Ensuring it Fails with a 400
# Create a record, ensuring it fails with a 400
self.post('domains/%s/records' % self.zone['id'], data=fixture,
status_code=400)
@@ -304,10 +304,10 @@ class ApiV1RecordsTest(ApiV1Test):
'type': self.recordset['type'],
})
# Set the TTL to a invalid value
# Set the TTL to an invalid value
fixture['ttl'] = "$?!."
# Create a record, Ensuring it Fails with a 400
# Create a record, ensuring it fails with a 400
self.post('domains/%s/records' % self.zone['id'], data=fixture,
status_code=400)
@@ -86,7 +86,7 @@ class ApiV1ServersTest(ApiV1Test):
# Create a server
fixture = self.get_server_fixture(0)
# Add a invalid name
# Add an invalid name
fixture['name'] = '$#$%^^'
# Ensure it fails with a 400
+2 -2
View File
@@ -118,7 +118,7 @@ class MdnsServiceTest(MdnsTestCase):
payload = self.query_payload
mock_socket = mock.Mock()
pay_len = struct.pack("!H", len(payload))
# Process 5 queries, than receive a misaligned query and close the
# Process 5 queries, then receive a misaligned query and close the
# connection there
mock_socket.recv.side_effect = [
pay_len, payload,
@@ -140,7 +140,7 @@ class MdnsServiceTest(MdnsTestCase):
payload = self.query_payload
mock_socket = mock.Mock()
pay_len = struct.pack("!H", len(payload))
# Process 5 queries, than receive a socket error and close the
# Process 5 queries, then receive a socket error and close the
# connection there
mock_socket.recv.side_effect = [
pay_len, payload,