def test_template(self): backbone = create_backbone() template = backbone.template('strand1', 'strand2') self.assertEqual( template, ''.join([ 'test_flanks5_s', 'strand1', 'test_loop_s', 'strand2', 'test_flanks3_s' ]).upper())
def test_template(self): backbone = create_backbone() template = backbone.template() self.assertEqual( template, ''.join( ['test_flanks5_s', 'test_siRNA1', 'test_loop_s', 'test_siRNA2', 'test_flanks3_s'] ).upper() )
def test_adjusted_frames(self): seq1 = 'acgt' seq2 = 'gtac' shift_left = 0 shift_right = 0 backbone = create_backbone() backbone.active_strand = 3 all_frames = [backbone] results = adjusted_frames( seq1, seq2, shift_left, shift_right, all_frames ) self.assertEqual(all_frames, results)