'Test pasting into text with a selection.'

def test_paste_text_selection(self):

    text = self.text
    (tag, ans) = ('sel', 'two\n')
    text.delete('1.0', 'end')
    text.insert('1.0', 'one', tag)
    text.event_generate('<<Paste>>')
    self.assertEqual(text.get('1.0', 'end'), ans)
