Beispiel #1
0
 def test_error_named_root_file(self):
     """对于named_root_file的错误调用测试"""
     curset = initconf.TMPL_NAMEDROOT
     initconf.TMPL_NAMEDROOT = "中华人民共和国"
     returncode = initconf.named_root_file()
     initconf.TMPL_NAMEDROOT = curset
     self.assertFalse(returncode)
Beispiel #2
0
 def test_error_named_root_file(self):
     """对于named_root_file的错误调用测试"""
     curset = initconf.TMPL_NAMEDROOT
     initconf.TMPL_NAMEDROOT = "中华人民共和国"
     returncode =  initconf.named_root_file()
     initconf.TMPL_NAMEDROOT = curset
     self.assertFalse(returncode)
Beispiel #3
0
 def test_named_root_file(self):
     """named_root_file test"""
     rootfile = initconf.named_root_file()
     self.assertTrue('A.ROOT-SERVERS.NET.      3600000      A' in rootfile)
Beispiel #4
0
 def test_named_root_file(self):
     """named_root_file test"""
     rootfile = initconf.named_root_file()
     self.assertTrue('A.ROOT-SERVERS.NET.      3600000      A' in rootfile )