configurationengine/source/cone/confml/tests/unittest_implml.py
changeset 0 2e8eeb919028
child 3 e7e0ae78773e
equal deleted inserted replaced
-1:000000000000 0:2e8eeb919028
       
     1 #
       
     2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 #
       
    16 
       
    17 import unittest
       
    18 import os
       
    19 import __init__
       
    20 from cone.public.exceptions import NotSupportedException
       
    21 
       
    22 from cone.confml import implml
       
    23 ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
       
    24 
       
    25 class TestImplementation(unittest.TestCase):    
       
    26     def setUp(self):
       
    27         pass
       
    28     
       
    29     def test_create_implml(self):
       
    30         imp = implml.Implml('test.txt',None)
       
    31 
       
    32     def test_generate_not_supported(self):
       
    33         try:
       
    34             imp = implml.Implml('test.txt',None)
       
    35             imp.generate()
       
    36             self.fail("Implementation base class should not support generation")
       
    37         except NotSupportedException:
       
    38             pass
       
    39 
       
    40 #    def test_list_output_files(self):
       
    41 #        imp = implml.Implml('ref/test.txt',None,ROOT_PATH)
       
    42 #        files = imp.list_output_files()
       
    43 #        self.assertTrue(len(files)>0)
       
    44         
       
    45 
       
    46 if __name__ == '__main__':
       
    47     unittest.main()