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)
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)
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 )