コード例 #1
0
ファイル: test_validator.py プロジェクト: cynepiaadmin/mailer
def test_bad_lookup_record_2():
	try:
		import DNS
	except ImportError:
		pytest.skip("PyDNS not installed.")
	
	mock = DomainValidator()
	
	with pytest.raises(RuntimeError):
		mock.lookup_domain('example.com', 'cname')
コード例 #2
0
def test_bad_lookup_record_2():
    try:
        import DNS
    except ImportError:
        pytest.skip("PyDNS not installed.")

    mock = DomainValidator()

    with pytest.raises(RuntimeError):
        mock.lookup_domain('example.com', 'cname')
コード例 #3
0
def test_bad_lookup_record_2():
    mock = DomainValidator()
    mock.lookup_domain('example.com', 'cname')
コード例 #4
0
def test_bad_lookup_record_2():
    mock = DomainValidator()
    mock.lookup_domain('example.com', 'cname')