Example #1
0
 def test_print_rank_one(self):
     out = StringIO()
     args_tar = self.mock_args.mock()
     args_tar.top = 2
     args_tar.tar_start = 20
     args_tar.tar_end = 15
     mrr.print_rank_one(self.example.srnas, out, "RNAplex", self.example.gffs, self.example.srna_gffs, args_tar)
     datas = convert_dict(out.getvalue().split("\n"))
     refs = convert_dict(self.example.out_print.split("\n"))
     self.assertDictEqual(datas, refs)
Example #2
0
 def test_print_rank_one(self):
     out = StringIO()
     args_tar = self.mock_args.mock()
     args_tar.top = 2
     args_tar.tar_start = 20
     args_tar.tar_end = 15
     mrr.print_rank_one(self.example.srnas, out, "RNAplex", self.example.gffs, self.example.srna_gffs, args_tar, 50)
     datas = convert_dict(out.getvalue().split("\n"))
     news = {}
     for key, value in datas.items():
         if len(key) != 0:
             news[key] = value
     refs = convert_dict(self.example.out_print.split("\n"))
     self.assertDictEqual(news, refs)
 def test_print_rank_one(self):
     out = StringIO()
     args_tar = self.mock_args.mock()
     args_tar.top = 2
     args_tar.tar_start = 20
     args_tar.tar_end = 15
     mrr.print_rank_one(self.example.srnas, out, "RNAplex",
                        self.example.gffs, self.example.srna_gffs,
                        args_tar, 50)
     datas = convert_dict(out.getvalue().split("\n"))
     news = {}
     for key, value in datas.items():
         if len(key) != 0:
             news[key] = value
     refs = convert_dict(self.example.out_print.split("\n"))
     self.assertDictEqual(news, refs)