'A TextField with choices uses a Select widget.'

def test_choices_generates_select_widget(self):

    f = models.TextField(choices=[('A', 'A'), ('B', 'B')])
    self.assertIsInstance(f.formfield().widget, forms.Select)
