def test_query_oneread(self): """ Tests querying oneread.fastq file for a single match """ _, matched = bt.count_matches(self.get_r("oneread"), self.get_bf("oneread"), bt.sampling(bt.total_reads(self.get_r("oneread")), 1)) assert matched[self.get_bf("oneread")] == 1
def test_query_nomatch(self): checked, matched = bt.count_matches(self.get_r("nomatch"), self.get_bf("nomatch"), bt.sampling(bt.total_reads(self.get_bf("nomatch")), 1)) assert checked == 1 assert isinstance(matched, dict), "Not a dict !: {}".format(type(matched))