def test_process_template_can_process_multiple_templatized_regions_with_default_gap_and_custom_gaps(self):
    lines = u'ab{{nexb Company}}cd{{12 second}}ef{{12 second}}gh'
    expected = [Token(start_line=0, end_line=0, start_char=0, end_char=2, value=u'ab', gap=DEFAULT_GAP), Token(start_line=0, end_line=0, start_char=18, end_char=20, value=u'cd', gap=12), Token(start_line=0, end_line=0, start_char=33, end_char=35, value=u'ef', gap=12), Token(start_line=0, end_line=0, start_char=48, end_char=50, value=u'gh', gap=NO_GAP)]
    assert (expected == self.template_parsing(lines))
def test_process_template_can_process_multiple_templatized_regions_with_default_gap_and_custom_gaps(self):
    lines = u'ab{{nexb Company}}cd{{12 second}}ef{{12 second}}gh'
    expected = [Token(start_line=0, end_line=0, start_char=0, end_char=2, value=u'ab', gap=DEFAULT_GAP), Token(start_line=0, end_line=0, start_char=18, end_char=20, value=u'cd', gap=12), Token(start_line=0, end_line=0, start_char=33, end_char=35, value=u'ef', gap=12), Token(start_line=0, end_line=0, start_char=48, end_char=50, value=u'gh', gap=NO_GAP)]
    assert (expected == self.template_parsing(lines))