def runit( self, sff, output=None ): ''' Run sffs_to_fastq ''' if output is None: path = seqio.sffs_to_fastq( sff ) else: path = seqio.sffs_to_fastq( sff, output ) assert path == output assert path is not None assert is_fastq( path ) assert sff_eq_fastq( sff, path )
def runit(self, sff, output=None): ''' Run sffs_to_fastq ''' if output is None: path = seqio.sffs_to_fastq(sff) else: path = seqio.sffs_to_fastq(sff, output) assert path == output assert path is not None assert is_fastq(path) assert sff_eq_fastq(sff, path)
def test_nonlist( self ): ''' Param is not a list ''' seqio.sffs_to_fastq( 'i am a string' ) seqio.sffs_to_fastq( 1 ) seqio.sffs_to_fastq( (1,2) )
def test_invalid_sff( self ): ''' One of the sff paths in list is not valid sff path ''' sff_list = [self.sff_input, 'invalid.sff'] seqio.sffs_to_fastq( sff_list )
def test_zeroitem( self ): ''' Param list is empty list ''' path = seqio.sffs_to_fastq( [], output='shouldnotexist.fastq' ) eq_( None, path ) eq_( True, not os.path.isfile( 'shouldnotexist.fastq' ) )
def test_invalid_sff(self): ''' One of the sff paths in list is not valid sff path ''' sff_list = [self.sff_input, 'invalid.sff'] seqio.sffs_to_fastq(sff_list)
def test_zeroitem(self): ''' Param list is empty list ''' path = seqio.sffs_to_fastq([], output='shouldnotexist.fastq') eq_(None, path) eq_(True, not os.path.isfile('shouldnotexist.fastq'))
def test_nonlist(self): ''' Param is not a list ''' seqio.sffs_to_fastq('i am a string') seqio.sffs_to_fastq(1) seqio.sffs_to_fastq((1, 2))