<s> """<STR_LIT>""" <EOL> from . . import amp_server_context_factory , rest_api_context_factory <EOL> from . . testtools import get_credential_sets <EOL> from ... testtools import TestCase <EOL> class ClientValidationContextFactoryTests ( TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_amp_new_context_each_time ( self ) : <EOL> """<STR_LIT>""" <EOL> ca_set , _ = get_credential_sets ( ) <EOL> context_factory = amp_server_context_factory ( <EOL> ca_set . root . credential . certificate , ca_set . control ) <EOL> self . assertIsNot ( context_factory . getContext ( ) , <EOL> context_factory . getContext ( ) ) <EOL> def test_rest_new_context_each_time ( self ) : <EOL> """<STR_LIT>""" <EOL> ca_set , _ = get_credential_sets ( ) <EOL> context_factory = rest_api_context_factory ( <EOL> ca_set . root . credential . certificate , ca_set . control ) <EOL> self . assertIsNot ( context_factory . getContext ( ) , <EOL> context_factory . getContext ( ) ) </s>
