def test_returns_correct_xml( self ): from bactpipeline.runsample import new_assembly # Create new assembly proj projdir = new_assembly( ) xmlfile = join( projdir, 'assembly', '454AssemblyProject.xml' ) r = self._C( projdir, self.fqs ) xml = open(xmlfile).read() print(xml) eq_( 2, xml.count('ReadFiles'), 'Did not insert ReadFiles correctly' ) self.fqs_in_xml( self.fqs, xml )
def _C( self, *args, **kwargs ): from bactpipeline.runsample import new_assembly return new_assembly( *args, **kwargs )