Exemple #1
0
def test_whoisguard_getIdByDomainName():
	# 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
	#whoisguardId = api.whoisguard_getIdByDomainName('banteg.tech')
	#whoisguardId = api.whoisguard_getIdByDomainName('kampret.site')
	whoisguardId = api.whoisguard_getIdByDomainName('kingkong.site')
	#assert_equal('15558880', whoisguardId)
	assert_equal('15570269', whoisguardId)
Exemple #2
0
def test_whoisguard_enable():
	# 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
	try:
		xml = api.whoisguard_enable('15558880', '*****@*****.**')
		print("XML:", xml, file=sys.stderr)
	except ApiError as e:
		print("e: ", e.number, type(e.number), file=sys.stderr)
		if e.number != '2011331':
			raise e