示例#1
0
 def testAddEmptyFields(self):
     """Test adding the empty fields."""
     fixed = add_empty_fields(BAD_UNTL_DICT.copy())
     for x in UNTL_XML_ORDER:
         self.assertTrue(x in fixed, '%s not in %s' % (x, fixed))
示例#2
0
 def testAddEmptyFields(self):
     """Test adding the empty fields."""
     fixed = add_empty_fields(BAD_UNTL_DICT.copy())
     for x in UNTL_XML_ORDER:
         self.assertTrue(x in fixed, '%s not in %s' % (x, fixed))
示例#3
0
 def testFixErrors(self):
     """Test finding UNTL errors."""
     found = find_untl_errors(BAD_UNTL_DICT.copy(), fix_errors=True)
     self.assertTrue(len(found['error_dict']) > 0)
示例#4
0
 def testFixErrors(self):
     """Test finding UNTL errors."""
     found = find_untl_errors(BAD_UNTL_DICT.copy(), fix_errors=True)
     self.assertTrue(len(found['error_dict']) > 0)