def test_06_import_export_import(self): profiles = Profiles() profiles.setConfiguration('tests/files/test_valid.xml') profiles.exportXML('/tmp/exportTest.xml') old_json = json.loads(profiles.getJSONString()) profiles.setConfiguration("/tmp/exportTest.xml") new_json = json.loads(profiles.getJSONString()) self.assertEqual(json.dumps(old_json, sort_keys=True), json.dumps(new_json, sort_keys=True)) os.remove('/tmp/exportTest.xml')