Module EDTestCaseEDFactoryPluginTest
[hide private]
[frames] | no frames]

Source Code for Module EDTestCaseEDFactoryPluginTest

 1  # 
 2  #    Project: The EDNA Kernel 
 3  #             http://www.edna-site.org 
 4  # 
 5  #    File: "$Id$" 
 6  # 
 7  #    Copyright (C) 2008-2009 European Synchrotron Radiation Facility 
 8  #                            Grenoble, France 
 9  # 
10  #    Principal authors: Olof Svensson (svensson@esrf.fr)  
11  # 
12  #    This program is free software: you can redistribute it and/or modify 
13  #    it under the terms of the GNU Lesser General Public License as published 
14  #    by the Free Software Foundation, either version 3 of the License, or 
15  #    (at your option) any later version. 
16  # 
17  #    This program is distributed in the hope that it will be useful, 
18  #    but WITHOUT ANY WARRANTY; without even the implied warranty of 
19  #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
20  #    GNU Lesser General Public License for more details. 
21  # 
22  #    You should have received a copy of the GNU General Public License 
23  #    and the GNU Lesser General Public License  along with this program.   
24  #    If not, see <http://www.gnu.org/licenses/>. 
25  # 
26   
27  __authors__ = [ "Olof Svensson" ] 
28  __contact__ = "svensson@esrf.fr" 
29  __license__ = "LGPLv3+" 
30  __copyright__ = "European Synchrotron Radiation Facility, Grenoble, France" 
31   
32   
33   
34  from EDTestCase          import EDTestCase 
35  from EDAssert            import EDAssert 
36  from EDFactoryPluginTest import EDFactoryPluginTest 
37  from EDUtilsPath         import EDUtilsPath 
38   
39 -class EDTestCaseEDFactoryPluginTest(EDTestCase):
40
41 - def __init__(self, _strTestName=None):
42 EDTestCase.__init__(self, "EDTestCaseEDFactoryPluginTest")
43 44
46 edFactoryPluginTest = EDFactoryPluginTest() 47 strEdnaHome = EDUtilsPath.getEdnaHome() 48 strTestProjectRootDirectoryReference = EDUtilsPath.appendListOfPaths(strEdnaHome, [ "kernel", "tests", "data", "EDFactoryPlugin", "testProject" ]) 49 strTestProjectRootDirectory1 = edFactoryPluginTest.getProjectRootDirectory("EDTestCasePluginUnitTestPluginFactory") 50 EDAssert.equal(strTestProjectRootDirectoryReference, strTestProjectRootDirectory1) 51 strTestProjectRootDirectory2 = edFactoryPluginTest.getProjectRootDirectory("EDTestSuitePluginUnitTestProject") 52 EDAssert.equal(strTestProjectRootDirectoryReference, strTestProjectRootDirectory2)
53 54 55
56 - def process(self):
58 59 60 61 if __name__ == '__main__': 62 63 edTestCaseEDFactoryPluginTest = EDTestCaseEDFactoryPluginTest("EDTestCaseEDFactoryPluginTest") 64 edTestCaseEDFactoryPluginTest.execute() 65