'Assert that it won\'t render unselected choices, if given a url.'

def test_widget_renders_only_selected_with_url(self):

    class Form(forms.Form, ):
        test = forms.ChoiceField(choices=[(i, ('label    for    %s' % i)) for i in range(0, 100)], widget=Select(url=reverse('test_url')), required=False)
    form = Form(http.QueryDict('test=4'))
    expected = ('\n<select    data-autocomplete-light-url="/test-url/"    id="id_test"    name="test">\n<option    value="4"    %s>label    for    4</option>\n</select>\n                                '.strip() % selected_tag())
    self.assertHTMLEqual(six.text_type(form['test'].as_widget()), expected)
