def test_process_template_handles_combination_of_well_formed_and_ill_formed_templates(self):
    lines = u'ab{{c}}d}}ef'
    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=7, end_char=8, value=u'd', gap=NO_GAP), Token(start_line=0, end_line=0, start_char=10, end_char=12, value=u'ef', gap=NO_GAP)]
    assert (expected == self.template_parsing(lines))
def test_process_template_handles_combination_of_well_formed_and_ill_formed_templates(self):
    lines = u'ab{{c}}d}}ef'
    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=7, end_char=8, value=u'd', gap=NO_GAP), Token(start_line=0, end_line=0, start_char=10, end_char=12, value=u'ef', gap=NO_GAP)]
    assert (expected == self.template_parsing(lines))