update wcs tests (#10564)

This commit is contained in:
Serghei Mihai 2016-03-13 18:31:40 +01:00
parent 2e1ed5a274
commit d4033ffcd8
1 changed files with 4 additions and 2 deletions

View File

@ -252,8 +252,10 @@ def test_current_forms_cell_setup():
cell = WcsCurrentFormsCell()
form_class = cell.get_default_form_class()
form = form_class()
assert form.fields['wcs_site'].widget.choices == [
('', 'All'), (u'default', u'test'), (u'other', u'test2')]
choices = form.fields['wcs_site'].widget.choices
assert ('', 'All') in choices
assert (u'default', u'test') in choices
assert (u'other', u'test2') in choices
try:
# check there is not wcs_site field if there's a single one defined in