Merge "Fix wrong Tld name"

This commit is contained in:
Jenkins 2017-06-09 12:10:41 +00:00 committed by Gerrit Code Review
commit a4d4aed518
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ class ApiV2TldsTest(ApiV2TestCase):
# We should start with 0 tlds
self.assertEqual(0, len(response.json['tlds']))
data = [self.create_tld(name='tld%s.' % i) for i in 'abcdefghijklmn']
data = [self.create_tld(name='tld%s' % i) for i in 'abcdefghijklmn']
self._assert_paging(data, '/tlds', key='tlds')
def test_get_tld(self):

View File

@ -297,10 +297,10 @@ class CentralServiceTest(CentralTestCase):
def test_update_tld(self):
# Create a tld
tld = self.create_tld(name='org.')
tld = self.create_tld(name='org')
# Update the Object
tld.name = 'net.'
tld.name = 'net'
# Perform the update
self.central_service.update_tld(self.admin_context, tld)
@ -309,7 +309,7 @@ class CentralServiceTest(CentralTestCase):
tld = self.central_service.get_tld(self.admin_context, tld.id)
# Ensure the tld was updated correctly
self.assertEqual('net.', tld.name)
self.assertEqual('net', tld.name)
def test_delete_tld(self):
# Create a tld