Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/m/o/mozservices-HEAD/mozsvc/tests/test_user.py   mozservices(Download)
    def test_that_the_correct_policy_defaults_are_used(self):
        policy = self.policy
        self.assertTrue(isinstance(policy, TokenServerAuthenticationPolicy))
        self.assertTrue(isinstance(policy.nonce_cache, PermissiveNonceCache))
        self.assertTrue(policy.secrets is None)
        config2.include("mozsvc.user")
        policy2 = config2.registry.queryUtility(IAuthenticationPolicy)
        self.assertTrue(isinstance(policy2.secrets, DerivedSecrets))
 
    def test_that_hawkauth_can_use_per_node_hostname_secrets(self):