示例#1
0
 def testDCJSON(self):
     """Test output and re-JSONing of JSON export."""
     dcjson = generate_dc_json(UNTL_DICT.copy())
     j = json.loads(dcjson)
     self.assertTrue(type(j), dict)
     for key, value in j.items():
         self.assertTrue(key in UNTL_DICT, '%s not in %s'
                         % (key, UNTL_DICT))
示例#2
0
 def testDCJSON(self):
     """Test output and re-JSONing of JSON export."""
     dcjson = generate_dc_json(UNTL_DICT.copy())
     j = json.loads(dcjson)
     self.assertTrue(type(j), dict)
     for key, value in j.items():
         self.assertTrue(key in UNTL_DICT,
                         '%s not in %s' % (key, UNTL_DICT))
示例#3
0
 def test_complete_record(self):
     """Test each tag appears as created from the dict keys."""
     self.record = untldict2py(UNTL_DICT)
     for c in self.record.children:
         self.assertTrue(c.tag in UNTL_DICT.keys())
示例#4
0
 def test_complete_record(self):
     """Test each tag appears as created from the dict keys."""
     self.record = untldict2py(UNTL_DICT)
     for c in self.record.children:
         self.assertTrue(c.tag in UNTL_DICT.keys())