コード例 #1
0
    def test_write_gap_file(self):
        original_read_len = 50
        delimiter = "|"
        additional_header_lines=["hoopy", "frood"]
        gaps = [MockGap("foo"), MockGap("bar")]
        writer = MockWriter()

        GapUtility(original_read_len, delimiter, MockLogger()).write_gap_file(gaps, writer, additional_header_lines)

        actual_lines = writer.lines()
        self.assertEqual(["#hoopy", "#frood", Gap.header("|"), "foo", "bar"], actual_lines)
コード例 #2
0
 def test_header(self):
     self.assertEqual("#chromosome|cluster|sample_name|gap_start|gap_end|gap_width|read_start|read_end|read_width|split_read_name|original_read_name", Gap.header("|"))