def test_403(self): ctx = ContextClient(BROKER_URL, self.key, self.secret + "thismakesitwrong") try: ctx.get_status(BROKER_URL + str(uuid.uuid4())) except BrokerAuthError, e: print "got error %s" % e
def test_404(self): ctx = ContextClient(BROKER_URL, self.key, self.secret) try: ctx.get_status(BROKER_URL + str(uuid.uuid4())) except ContextNotFoundError, e: print "got error %s" % e