def test_get_app_versions(self): actual = forms.get_app_versions(amo.FIREFOX) expected = [('any', 'Any'), ('3.6', '3.6'), ('3.5', '3.5'), ('3.0', '3.0'), ] # So you added a new appversion and this broke? Sorry about that. eq_(actual, expected)
def test_get_app_versions(self): actual = forms.get_app_versions(amo.FIREFOX) expected = [ ('any', 'Any'), ('3.6', '3.6'), ('3.5', '3.5'), ('3.0', '3.0'), ] # So you added a new appversion and this broke? Sorry about that. eq_(actual, expected)
def test_get_app_versions(self): actual = forms.get_app_versions() expected = { amo.FIREFOX.id: ['1.5', '2.0', '3.0', '3.5', '3.6', '3.7'], amo.THUNDERBIRD.id: [], amo.SUNBIRD.id: [], amo.SEAMONKEY.id: [], amo.MOBILE.id: ['1.0'], } for app in expected: expected[app] = [(k, k) for k in expected[app]] expected[app].append(('Any', 'any')) # So you added a new appversion and this broke? Sorry about that. eq_(actual, expected)