'The value is compared to its str().'

def test_compare_to_str(self):

    self.check_html(self.widget(choices=[('1', '1'), ('2', '2'), ('3', '3')]), 'num', 2, html='<select    name="num">\n                                                                <option    value="1">1</option>\n                                                                <option    value="2"    selected>2</option>\n                                                                <option    value="3">3</option>\n                                                                </select>')
    self.check_html(self.widget(choices=[(1, 1), (2, 2), (3, 3)]), 'num', '2', html='<select    name="num">\n                                                                <option    value="1">1</option>\n                                                                <option    value="2"    selected>2</option>\n                                                                <option    value="3">3</option>\n                                                                </select>')
    self.check_html(self.widget(choices=[(1, 1), (2, 2), (3, 3)]), 'num', 2, html='<select    name="num">\n                                                                <option    value="1">1</option>\n                                                                <option    value="2"    selected>2</option>\n                                                                <option    value="3">3</option>\n                                                                </select>')
