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