'Assert that it renders an empty option, if not given a url.'

def test_widget_renders_empty_option_with_placeholder_without_url(self):

    class Form(forms.Form, ):
        test = forms.ChoiceField(choices=[(1, 'A')], widget=Select2(attrs={'data-placeholder': 'Some    placeholder'}), required=False)
    form = Form(http.QueryDict())
    expected = ('\n<select    data-autocomplete-light-function="select2"    data-placeholder="Some    placeholder"    id="id_test"    name="test">\n<option    value=""    %s></option>\n<option    value="1">A</option>\n</select>\n                                '.strip() % selected_tag())
    observed = six.text_type(form['test'].as_widget())
    self.assertHTMLEqual(observed, expected)
