'Each call to the REST API server\'s context factory ``getContext``
returns a new instance, to prevent issues with global shared
state.'

def test_rest_new_context_each_time(self):

    (ca_set, _) = get_credential_sets()
    context_factory = rest_api_context_factory(ca_set.root.credential.certificate, ca_set.control)
    self.assertIsNot(context_factory.getContext(), context_factory.getContext())
