Пример #1
0
def test_register_domain():
    api = Api(username, api_key, username, ip_address, sandbox=True)

    # Try registering a random domain. Fails if exception raised.
    domain_name = random_domain_name()
    api.domains_create(DomainName=domain_name,
                       FirstName='Jack',
                       LastName='Trotter',
                       Address1='Ridiculously Big Mansion, Yellow Brick Road',
                       City='Tokushima',
                       StateProvince='Tokushima',
                       PostalCode='771-0144',
                       Country='Japan',
                       Phone='+81.123123123',
                       EmailAddress='*****@*****.**')
    return domain_name
Пример #2
0
def test_register_domain():
	api = Api(username, api_key, username, ip_address, sandbox = True)

	# Try registering a random domain. Fails if exception raised.
	domain_name = random_domain_name()
	api.domains_create(
		DomainName = domain_name,
		FirstName = 'Jack',
		LastName = 'Trotter',
		Address1 = 'Ridiculously Big Mansion, Yellow Brick Road',
		City = 'Tokushima',
		StateProvince = 'Tokushima',
		PostalCode = '771-0144',
		Country = 'Japan',
		Phone = '+81.123123123',
		EmailAddress = '*****@*****.**'
	)
	return domain_name
Пример #3
0
def test_domains_create_with_whoisguard():
	# Comment the return statement below to let this test case run
	return
	api = Api(username, api_key, username, ip_address, sandbox = False)
	#api.debug = False
	api.domains_create(
		#DomainName = 'kampret.site',
		DomainName = 'kingkong.site',
		FirstName = 'Jack',
		LastName = 'Trotter',
		Address1 = 'Ridiculously Big Mansion, Yellow Brick Road',
		City = 'Tokushima',
		StateProvince = 'Tokushima',
		PostalCode = '771-0144',
		Country = 'Japan',
		Phone = '+81.123123123',
		EmailAddress = '*****@*****.**',
		whoisguardActivated = True,
	)