def test_02(self): """ Tests whether files of input format Chimera prettyPrint can be parsed""" fusions = ReadChimeraPrettyPrint("tests/data/test_Readers.TestReadChimeraPrettyPrint.test_02.txt","test") self.assertEqual(fusions[0].acceptor_donor_direction , AD_DIRECTION_FORWARD ) self.assertEqual(fusions[1].acceptor_donor_direction , AD_DIRECTION_REVERSE ) self.assertEqual(fusions[2].acceptor_donor_direction , AD_DIRECTION_REVERSE ) self.assertEqual(fusions[3].acceptor_donor_direction , AD_DIRECTION_FORWARD )
def test_01(self): """ Tests whether files of input format Chimera prettyPrint can be parsed""" fusions = ReadChimeraPrettyPrint("tests/data/test_Readers.TestReadChimeraPrettyPrint.test_01.txt","test") self.assertEqual(len(fusions) , 2) self.assertEqual(fusions[0].left_break_position , 8407 ) self.assertEqual(fusions[0].right_break_position , 14006 ) self.assertEqual(fusions[0].left_strand , STRAND_REVERSE ) self.assertEqual(fusions[0].right_strand , STRAND_FORWARD ) self.assertEqual(fusions[1].left_break_position , 5320 ) self.assertEqual(fusions[1].right_break_position , 11706 ) self.assertEqual(fusions[1].left_strand , STRAND_FORWARD ) self.assertEqual(fusions[1].right_strand , STRAND_REVERSE )