def test(self):
        r = entcertlib.EntCertUpdateReport()
        r.expected = "12312"
        r.valid = ["2342∰"]
        r.added.append(self._stub_cert())
        r.rogue.append(self._stub_cert())

        # an UnicodeError will fail the tests
        report_str = str(r)
        "%s" % report_str

        with fixture.locale_context("de_DE.utf8"):
            report_str = str(r)
            "%s" % r
Exemplo n.º 2
0
    def test(self):
        r = entcertlib.EntCertUpdateReport()
        r.expected = u'12312'
        r.valid = [u'2342∰']
        r.added.append(self._stub_cert())
        r.rogue.append(self._stub_cert())

        # an UnicodeError will fail the tests
        report_str = unicode(r)
        '%s' % report_str

        with fixture.locale_context('de_DE.utf8'):
            report_str = unicode(r)
            '%s' % r
Exemplo n.º 3
0
 def __init__(self):
     self.cp_provider = inj.require(inj.CP_PROVIDER)
     self.uep = self.cp_provider.get_consumer_auth_cp()
     self.report = entcertlib.EntCertUpdateReport()
     self.plugin_manager = inj.require(inj.PLUGIN_MANAGER)