Beispiel #1
0
 def test_name(self):
     greendns.resolve.add('host.example.com', '1.2.3.4')
     assert greendns.gethostbyname('host.example.com') == '1.2.3.4'
Beispiel #2
0
 def test_name(self):
     greendns.resolve.add('host.example.com', '1.2.3.4')
     assert greendns.gethostbyname('host.example.com') == '1.2.3.4'
Beispiel #3
0
 def test_ipaddr(self):
     assert greendns.gethostbyname('1.2.3.4') == '1.2.3.4'
Beispiel #4
0
 def test_ipaddr(self):
     assert greendns.gethostbyname('1.2.3.4') == '1.2.3.4'