コード例 #1
0
ファイル: test_utils.py プロジェクト: samriang/pybsd
 def test_from_split_ipv6(self):
     _list = [6, 128, 'a1', 'b2', 'c3', 'd4', '0', '0', '0', '0']
     self.assertEqual(from_split_if(_list), 'a1:b2:c3:d4:0:0:0:0/128',
                      'incorrect output')
コード例 #2
0
ファイル: test_utils.py プロジェクト: rebost/pybsd
 def test_from_split_ipv6(self):
     _list = [6, 128, 'a1', 'b2', 'c3', 'd4', '0', '0', '0', '0']
     self.assertEqual(from_split_if(_list), 'a1:b2:c3:d4:0:0:0:0/128',
                     'incorrect output')
コード例 #3
0
ファイル: test_utils.py プロジェクト: samriang/pybsd
 def test_from_split_ipv4(self):
     _list = [4, 32, '1', '2', '3', '4']
     self.assertEqual(from_split_if(_list), '1.2.3.4/32',
                      'incorrect output')
コード例 #4
0
ファイル: test_utils.py プロジェクト: rebost/pybsd
 def test_from_split_ipv4(self):
     _list = [4, 32, '1', '2', '3', '4']
     self.assertEqual(from_split_if(_list), '1.2.3.4/32',
                     'incorrect output')