diff -r be27ed110b50 -r d8ac696cc51f buildframework/helium/tools/common/python/lib/cpythontest/test_atsconfigparser.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/buildframework/helium/tools/common/python/lib/cpythontest/test_atsconfigparser.py Wed Dec 23 19:29:07 2009 +0200
@@ -0,0 +1,101 @@
+#============================================================================
+#Name : test_atsconfigparser.py
+#Part of : Helium
+
+#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 the License "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:
+#===============================================================================
+
+""" Testing the ATS configuration file """
+
+import os
+import logging
+import tempfile
+import unittest
+
+import ats3.atsconfigparser
+
+_logger = logging.getLogger('test.atsconfigparser')
+logging.basicConfig(level=logging.INFO)
+
+class AtsConfigParserTest(unittest.TestCase):
+
+ def test_x(self):
+ spectext = """
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ """
+
+ testxmldata = """
+ helium_clock
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ """
+
+ (fd, filename) = tempfile.mkstemp()
+ f = os.fdopen(fd, 'w')
+ f.write(spectext)
+ f.close()
+
+ output = ats3.atsconfigparser.converttestxml(filename, testxmldata)
+ os.remove(filename)
+ _logger.info(output)
+ assert '' in output
+ assert '' in output
+ assert '' not in output
+ assert '' in output
+ assert '' not in output
+ assert '' in output
+
\ No newline at end of file