Exemplo n.º 1
0
 def test_duplicate_oneliner(self):
     """[Process] Duplicate oneliners"""
     locus = self.prep_oneliner_array()
     d = {'chrm': 'chr1_1036'}
     tree_name = cl.make_tree_name(d)
     oneliner = "%s:%s" % (tree_name, locus)
     expected = [(r, oneliner) for r in reversed(xrange(1, 6))]
     dupes = self.p.duplicate_oneliner(1, oneliner, 5)
     observed = [d for d in dupes]
     assert observed == expected
Exemplo n.º 2
0
 def test_make_tree_name(self):
     """[Process] Tree name from args_dict"""
     d = {'chrm': 'chr1_1036'}
     observed = cl.make_tree_name(d)
     expected = 'chrm=chr1_1036'
     assert observed == expected