Exemplo n.º 1
0
 def topic(self):
     storage = NoStorage(None)
     storage.put_detector_data(IMAGE_URL % 3, "some data")
     return storage.get_detector_data(IMAGE_URL % 3)
Exemplo n.º 2
0
 def topic(self):
     storage = NoStorage(None)
     storage.put_detector_data(IMAGE_URL % 3, "some data")
     return storage.get_detector_data(IMAGE_URL % 3)
Exemplo n.º 3
0
 def test_detector_data_should_be_null(self):
     iurl = self.get_image_url('source.jpg')
     storage = NoStorage(None)
     storage.put_detector_data(iurl, "some data")
     data = storage.get_detector_data(iurl)
     expect(data.result()).to_be_null()