vaidikkp/zamboni — comment on commit 9d87b2c355cee60d2d3599bac0b44818ddbd342a
File:  line 0
By cvan:

I would write another test that ensures the `` elements appear for each GET variable. you can copy this test - https://github.com/mozilla/zamboni/blob/master/apps/amo/tests/test_views.py#L241 - and make a new test called `test_language_selector_variables`.

`pyQuery`'s syntax is just like `jQuery`'s - it makes things pretty easy to test. I would just check something like this:

doc('form.langauges input[type=hidden][name=foo]').val(), 'fooval')
doc('form.langauges input[type=hidden][name=bar]').val(), 'barval')