Beispiel #1
0
    def test_nothing_assembled_false(self, info):
        assembler = BaseAssembler('args', 'db_conn')
        assembler.set_state('blast_db', 'query_file', 99)
        assembler.file['output'] = 'tests/data/load_seq1.txt'

        assert not assembler.nothing_assembled()

        info.assert_not_called()
Beispiel #2
0
    def test_nothing_assembled_empty(self, info):
        assembler = BaseAssembler('args', 'db_conn')
        assembler.set_state('blast_db', 'query_file', 99)
        assembler.file['output'] = 'tests/data/empty_file.txt'

        assert assembler.nothing_assembled()

        expect = 'No new assemblies in iteration {}'.format(
            assembler.state['iteration'])
        info.assert_called_once_with(expect)