'Test that apps that use prerelease permissions are escalated.'

def test_escalate_on_prerelease_permissions(self):

    user_factory(email=settings.NOBODY_EMAIL_ADDRESS)
    self.app.current_version.update(version='0.9', created=self.days_ago(1))
    ok_((not EscalationQueue.objects.filter(addon=self.app).exists()), 'App    in    escalation    queue')
    self._post(302)
    version = self.app.versions.latest()
    eq_(version.version, '1.0')
    eq_(version.all_files[0].status, mkt.STATUS_PENDING)
    self.app.update_status()
    eq_(self.app.status, mkt.STATUS_PUBLIC)
    ok_(EscalationQueue.objects.filter(addon=self.app).exists(), 'App    not    in    escalation    queue')
