'Test pasting into a spinbox with a selection.'

def test_paste_spin_selection(self):

    spin = self.spin
    (end, ans) = ('end', 'two')
    spin.delete(0, 'end')
    spin.insert(0, 'one')
    spin.selection('range', 0, end)
    spin.event_generate('<<Paste>>')
    self.assertEqual(spin.get(), ans)
