Exemplo n.º 1
0
 def setUp(self):
   self.headers = getDefaultHTTPHeaders(htm-it.app.config)
   self.app = TestApp(annotations_api.app.wsgifunc())
   self.annotation = {
     "uid": "f4aa70b361f04036b0b39530900f38fa",
     "timestamp": "2014-01-25 05:00:00",
     "created": "2014-01-25 07:14:06",
     "device": "device1",
     "user": "******",
     "server": "htm-itdb2",
     "message": "My annotation",
     "data": None
   }
   # Prepare request as annotation without "uid" or "created" fields
   self.request = self.annotation.copy()
   del self.request["uid"]
   del self.request["created"]
Exemplo n.º 2
0
 def setUp(self):
   self.headers = getDefaultHTTPHeaders(htm-it.app.config)
   self.app = TestApp(wufoo_api.app.wsgifunc())
   self.instanceData = {"version" : "2010-08-31",
                        "instanceId" : "i-d9e211f6",
                        "billingProducts" : None,
                        "accountId" : "987654321",
                        "kernelId" : "aki-88aa75e1",
                        "ramdiskId" : None,
                        "architecture" : "x86_64",
                        "imageId" : "ami-b56a7fdc",
                        "pendingTime" : "2014-03-20T14:06:46Z",
                        "instanceType" : "m1.medium",
                        "region" : "us-east-1",
                        "devpayProductCodes" : None,
                        "privateIp" : "10.122.242.151",
                        "availabilityZone" : "us-east-1d"}
   self.postData = data = {"name": "User Schmoozer",
                           "company": "Numenta, inc.",
                           "edition": "Standard",
                           "version": htm-it.__version__.__version__,
                           "build": "0",
                           "email": "*****@*****.**"}
 def setUp(self):
   self.app = TestApp(models_api.app.wsgifunc())
   self.headers = getDefaultHTTPHeaders(htm-it.app.config)
   self.data = self.createTestData()
Exemplo n.º 4
0
 def setUp(self):
   self.headers = getDefaultHTTPHeaders(htm-it.app.config)
   self.app = TestApp(autostacks_api.app.wsgifunc())