equal
deleted
inserted
replaced
|
1 # coding=utf-8 |
|
2 |
|
3 from __future__ import unicode_literals |
|
4 from __future__ import print_function |
|
5 from __future__ import division |
|
6 from __future__ import absolute_import |
|
7 from future import standard_library |
|
8 standard_library.install_aliases() |
|
9 from builtins import * |
|
10 import unittest |
|
11 from whois import whois |
|
12 |
|
13 |
|
14 class TestQuery(unittest.TestCase): |
|
15 def test_simple_ascii_domain(self): |
|
16 domain = 'google.com' |
|
17 whois(domain) |
|
18 |
|
19 def test_simple_unicode_domain(self): |
|
20 domain = 'нарояци.com' |
|
21 whois(domain) |
|
22 |
|
23 def test_unicode_domain_and_tld(self): |
|
24 domain = 'россия.рф' |
|
25 whois(domain) |
|
26 |
|
27 def test_fail(self): |
|
28 raise Exception('Whiskey Tango Foxtrot, over?') |