def test2(self): from mcni.pyre_components import componentfactory f = componentfactory( 'monitors', 'NeutronPrinter' ) from mcni.pyre_components.NeutronPrinter import NeutronPrinter self.assertEqual( f, NeutronPrinter ) return
def test1(self): from mcni.pyre_components import componentfactory f = componentfactory( 'sources', 'MonochromaticSource' ) from mcni.pyre_components.MonochromaticSource import MonochromaticSource self.assertEqual( f, MonochromaticSource ) return