Пример #1
0
 def test_CIDR_13(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '13'),
                      '0/13.1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.200.3.4', '13'),
                      '200/13.1.in-addr.arpa.')
Пример #2
0
 def test_CIDR_13(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '13'),
                       '0/13.1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.200.3.4', '13'),
                       '200/13.1.in-addr.arpa.')
Пример #3
0
 def test_CIDR_12(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '12'),
                      '0/12.1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.200.3.4', '12'),
                      '192/12.1.in-addr.arpa.')
Пример #4
0
 def test_CIDR_12(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '12'),
                       '0/12.1.in-addr.arpa.')
     self.assertEquals(dns.ptrSoaName('1.200.3.4', '12'),
                       '192/12.1.in-addr.arpa.')
Пример #5
0
 def test_CIDR_29(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '29'),
                       '0/29.3.2.1.in-addr.arpa.')
Пример #6
0
 def test_CIDR_30(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '30'),
                      '4/30.3.2.1.in-addr.arpa.')
Пример #7
0
 def test_classC(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '255.255.255.0'),
                       '3.2.1.in-addr.arpa.')
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '24'),
                       '3.2.1.in-addr.arpa.')
Пример #8
0
 def test_CIDR_13(self):
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "13"), "0/13.1.in-addr.arpa.")
     self.assertEqual(dns.ptrSoaName("1.200.3.4", "13"), "200/13.1.in-addr.arpa.")
Пример #9
0
 def test_CIDR_15(self):
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "15"), "2/15.1.in-addr.arpa.")
     self.assertEqual(dns.ptrSoaName("1.200.3.4", "15"), "200/15.1.in-addr.arpa.")
Пример #10
0
 def test_CIDR_9(self):
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "9"), "0/9.1.in-addr.arpa.")
     self.assertEqual(dns.ptrSoaName("1.200.3.4", "9"), "128/9.1.in-addr.arpa.")
Пример #11
0
 def test_CIDR_12(self):
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "12"), "0/12.1.in-addr.arpa.")
     self.assertEqual(dns.ptrSoaName("1.200.3.4", "12"), "192/12.1.in-addr.arpa.")
Пример #12
0
 def test_classC(self):
     self.assertEqual(
         dns.ptrSoaName("1.2.3.4", "255.255.255.0"), "3.2.1.in-addr.arpa."
     )
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "24"), "3.2.1.in-addr.arpa.")
Пример #13
0
 def test_classA(self):
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "255.0.0.0"), "1.in-addr.arpa.")
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "8"), "1.in-addr.arpa.")
Пример #14
0
 def test_classB(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '255.255.0.0'),
                       '2.1.in-addr.arpa.')
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '16'), '2.1.in-addr.arpa.')
Пример #15
0
 def test_CIDR_15(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '15'),
                      '2/15.1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.200.3.4', '15'),
                      '200/15.1.in-addr.arpa.')
Пример #16
0
 def test_CIDR_29(self):
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "29"), "0/29.3.2.1.in-addr.arpa.")
Пример #17
0
 def test_CIDR_29(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '29'),
                      '0/29.3.2.1.in-addr.arpa.')
Пример #18
0
 def test_CIDR_30(self):
     self.assertEqual(dns.ptrSoaName("1.2.3.4", "30"), "4/30.3.2.1.in-addr.arpa.")
Пример #19
0
 def test_classA(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '255.0.0.0'),
                       '1.in-addr.arpa.')
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '8'),
                       '1.in-addr.arpa.')
Пример #20
0
 def test_classA(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '255.0.0.0'),
                      '1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '8'), '1.in-addr.arpa.')
Пример #21
0
 def test_CIDR_9(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '9'),
                       '0/9.1.in-addr.arpa.')
     self.assertEquals(dns.ptrSoaName('1.200.3.4', '9'),
                       '128/9.1.in-addr.arpa.')
Пример #22
0
 def test_classC(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '255.255.255.0'),
                      '3.2.1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '24'),
                      '3.2.1.in-addr.arpa.')
Пример #23
0
 def test_CIDR_15(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '15'),
                       '2/15.1.in-addr.arpa.')
     self.assertEquals(dns.ptrSoaName('1.200.3.4', '15'),
                       '200/15.1.in-addr.arpa.')
Пример #24
0
 def test_CIDR_9(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '9'), '0/9.1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.200.3.4', '9'),
                      '128/9.1.in-addr.arpa.')
Пример #25
0
 def test_CIDR_30(self):
     self.assertEquals(dns.ptrSoaName('1.2.3.4', '30'),
                       '4/30.3.2.1.in-addr.arpa.')
Пример #26
0
 def test_classB(self):
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '255.255.0.0'),
                       '2.1.in-addr.arpa.')
     self.assertEqual(dns.ptrSoaName('1.2.3.4', '16'),
                       '2.1.in-addr.arpa.')