configurationengine/source/plugins/symbian/ConeHCRPlugin/hcrplugin/tests/unittest_hcrml_impl.py
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
--- a/configurationengine/source/plugins/symbian/ConeHCRPlugin/hcrplugin/tests/unittest_hcrml_impl.py	Fri Mar 12 08:30:17 2010 +0200
+++ b/configurationengine/source/plugins/symbian/ConeHCRPlugin/hcrplugin/tests/unittest_hcrml_impl.py	Tue Aug 10 14:29:28 2010 +0300
@@ -15,16 +15,16 @@
 #
 
 import os, unittest
-import __init__
+
 from cone.public import plugin
-from hcrplugin.hcrml_parser import HcrmlReader
 
 def impl_from_resource(resource_ref, configuration):
     """
     Read a HCRML implementation from the given resource in a configuration.
     """
-    doc_root = plugin.ReaderBase._read_xml_doc_from_resource(resource_ref, configuration)
-    return HcrmlReader.read_impl(resource_ref, configuration, doc_root)
+    impls = plugin.ImplFactory.get_impls_from_file(resource_ref, configuration)
+    assert len(impls) == 1
+    return impls[0]
 
 ROOT_PATH = os.path.dirname(os.path.abspath(__file__))