コード例 #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
ファイル: pyuntl_test.py プロジェクト: unt-libraries/pyuntl
 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
ファイル: pyuntl_test.py プロジェクト: unt-libraries/pyuntl
 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)