diff -r 000000000000 -r 2e8eeb919028 configurationengine/source/plugins/common/ConeTemplatePlugin/templatemlplugin/tests/unittest_templatemlplugin.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configurationengine/source/plugins/common/ConeTemplatePlugin/templatemlplugin/tests/unittest_templatemlplugin.py Thu Mar 11 17:04:37 2010 +0200 @@ -0,0 +1,675 @@ +# *-* coding: utf-8 *-* +# +# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# + +import unittest, os, shutil, sys + +try: + from cElementTree import ElementTree, ElementInclude +except ImportError: + try: + from elementtree import ElementTree, ElementInclude + except ImportError: + try: + from xml.etree import cElementTree as ElementTree + except ImportError: + from xml.etree import ElementTree + +import __init__ +from templatemlplugin import templatemlplugin +from types import NoneType +from testautomation.base_testcase import BaseTestCase +from testautomation.utils import hex_to_bindata + +from cone.public import exceptions,plugin,api,utils +from cone.storage import filestorage +from cone.confml import implml + +# Hardcoded value of testdata folder that must be under the current working dir +ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) +testdata = os.path.join(ROOT_PATH,'project') + +TEMPML_DOC1 = " " \ + "" \ + "Desc" \ + "" \ + "" \ + "" \ + "lambda a,b: a+b" \ + "" + +TEMPML_DOC2 = " " \ + "" \ + "Desc" \ + "" \ + "" \ + "" \ + "lambda a,b: a+b" \ + "" + +TEMPML_DOC3 = " " \ + "" \ + "Desc" \ + "" \ + "" \ + "" \ + "lambda a,b: a+b" \ + "" + +TEMPML_DOC4 = " " \ + "" \ + "" \ + "