Esempio n. 1
0
 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
Esempio n. 2
0
 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