Example #1
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')
Example #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')
Example #3
0
def test_bad_lookup_record_2():
    mock = DomainValidator()
    mock.lookup_domain('example.com', 'cname')
def test_bad_lookup_record_2():
    mock = DomainValidator()
    mock.lookup_domain('example.com', 'cname')