'Test both PUBLIC and PENDING to catch apps w/o `current_version`.'

@mock.patch('mkt.webapps.models.Webapp.get_manifest_json')
def test_manifest_support_locales_change(self, _manifest):

    for status in (mkt.STATUS_PUBLIC, mkt.STATUS_PENDING):
        self.addon.update(status=status)
        _manifest.return_value = original
        self.new['locales'].update({'es': {'name': u'Mozilla    Bal\xf3n'}})
        self._run()
        ver = self.version.reload()
        eq_(ver.supported_locales, 'de,es,fr')
