Merge "Fix wrong Tld name"
This commit is contained in:
commit
a4d4aed518
|
@ -85,7 +85,7 @@ class ApiV2TldsTest(ApiV2TestCase):
|
||||||
# We should start with 0 tlds
|
# We should start with 0 tlds
|
||||||
self.assertEqual(0, len(response.json['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')
|
self._assert_paging(data, '/tlds', key='tlds')
|
||||||
|
|
||||||
def test_get_tld(self):
|
def test_get_tld(self):
|
||||||
|
|
|
@ -297,10 +297,10 @@ class CentralServiceTest(CentralTestCase):
|
||||||
|
|
||||||
def test_update_tld(self):
|
def test_update_tld(self):
|
||||||
# Create a tld
|
# Create a tld
|
||||||
tld = self.create_tld(name='org.')
|
tld = self.create_tld(name='org')
|
||||||
|
|
||||||
# Update the Object
|
# Update the Object
|
||||||
tld.name = 'net.'
|
tld.name = 'net'
|
||||||
|
|
||||||
# Perform the update
|
# Perform the update
|
||||||
self.central_service.update_tld(self.admin_context, tld)
|
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)
|
tld = self.central_service.get_tld(self.admin_context, tld.id)
|
||||||
|
|
||||||
# Ensure the tld was updated correctly
|
# Ensure the tld was updated correctly
|
||||||
self.assertEqual('net.', tld.name)
|
self.assertEqual('net', tld.name)
|
||||||
|
|
||||||
def test_delete_tld(self):
|
def test_delete_tld(self):
|
||||||
# Create a tld
|
# Create a tld
|
||||||
|
|
Loading…
Reference in New Issue