'Test whether the get dispersy instance throws an exception if dispersy is not enabled.'

@raises(OperationNotEnabledByConfigurationException)
def test_get_dispersy_instance(self):

    self.session.config.get_dispersy_enabled = (lambda : False)
    self.session.get_dispersy_instance()
