Source code for pymcxray.FileFormat.test_RegionType

#!/usr/bin/env python
"""
.. py:currentmodule:: FileFormat.test_RegionType
.. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca>

Test for module `RegionType`.
"""

# Script information for the file.
__author__ = "Hendrix Demers (hendrix.demers@mail.mcgill.ca)"
__version__ = ""
__date__ = ""
__copyright__ = "Copyright (c) 2012 Hendrix Demers"
__license__ = ""

# Subversion informations for the file.
__svnRevision__ = "$Revision$"
__svnDate__ = "$Date$"
__svnId__ = "$Id$"

# Standard library modules.
import unittest
import logging

# Third party modules.

# Local modules.

# Project modules
import pymcxray.FileFormat.RegionType as RegionType

# Globals and constants variables.

[docs]class TestRegionType(unittest.TestCase): """ TestCase class for the module `RegionType`. """
[docs] def setUp(self): """ Setup method. """ unittest.TestCase.setUp(self)
[docs] def tearDown(self): """ Teardown method. """ unittest.TestCase.tearDown(self)
[docs] def testSkeleton(self): """ First test to check if the testcase is working with the testing framework. """ #self.fail("Test if the testcase is working.") self.assert_(True)
[docs] def test_Constants(self): """ Tests for method `Constants`. """ self.assertEquals("BOX", RegionType.REGION_TYPE_BOX) self.assertEquals("CYLINDER", RegionType.REGION_TYPE_CYLINDER) self.assertEquals("SPHERE", RegionType.REGION_TYPE_SPHERE)
#self.fail("Test if the testcase is working.") if __name__ == '__main__': #pragma: no cover logging.getLogger().setLevel(logging.DEBUG) from pymcxray.Testings import runTestModuleWithCoverage runTestModuleWithCoverage(__file__)