예제 #1
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv6_and_port(self):
     self.assertEqual(utils.split_host('[2001:4de0:1::1:1]:42', 119),
                      ('2001:4de0:1::1:1', 42))
예제 #2
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv6(self):
     self.assertEqual(utils.split_host('2001:4de0:1::1:1', 119),
                      ('2001:4de0:1::1:1', 119))
예제 #3
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv6_in_brackets(self):
     self.assertEqual(utils.split_host('[2001:4de0:1::1:1]', 119),
                      ('2001:4de0:1::1:1', 119))
예제 #4
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv4(self):
     self.assertEqual(utils.split_host('213.135.51.10', 119),
                      ('213.135.51.10', 119))
예제 #5
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv4_and_port(self):
     self.assertEqual(utils.split_host('213.135.51.10:42', 119),
                      ('213.135.51.10', 42))
예제 #6
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_domain(self):
     self.assertEqual(utils.split_host('news.icm.edu.pl', 119),
                      ('news.icm.edu.pl', 119))
예제 #7
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_domain_and_port(self):
     self.assertEqual(utils.split_host('news.icm.edu.pl:42', 119),
                      ('news.icm.edu.pl', 42))
예제 #8
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv6_in_brackets(self):
     self.assertEqual(
         utils.split_host('[2001:4de0:1::1:1]', 119),
         ('2001:4de0:1::1:1', 119)
     )
예제 #9
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv6_and_port(self):
     self.assertEqual(
         utils.split_host('[2001:4de0:1::1:1]:42', 119),
         ('2001:4de0:1::1:1', 42)
     )
예제 #10
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv6(self):
     self.assertEqual(
         utils.split_host('2001:4de0:1::1:1', 119),
         ('2001:4de0:1::1:1', 119)
     )
예제 #11
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv4_and_port(self):
     self.assertEqual(
         utils.split_host('213.135.51.10:42', 119),
         ('213.135.51.10', 42)
     )
예제 #12
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_ipv4(self):
     self.assertEqual(
         utils.split_host('213.135.51.10', 119),
         ('213.135.51.10', 119)
     )
예제 #13
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_domain_and_port(self):
     self.assertEqual(
         utils.split_host('news.icm.edu.pl:42', 119),
         ('news.icm.edu.pl', 42)
     )
예제 #14
0
파일: tests.py 프로젝트: lfd/sinntp
 def test_domain(self):
     self.assertEqual(
         utils.split_host('news.icm.edu.pl', 119),
         ('news.icm.edu.pl', 119)
     )