Ejemplo n.º 1
0
    def setUp(self):
        options = {"url": "http://salvius.org/images/news02.jpg"}
        connection = Camera(options)

        # Mock the the image returned by the download method
        connection.download_image = MagicMock(return_value="tests/news.jpg")

        self.ocr = OCR(options, connection)
Ejemplo n.º 2
0
 def setUp(self):
     options = {"url": "http://www.gravatar.com/avatar/0?d=mm"}
     self.camera = Camera(options)
Ejemplo n.º 3
0
 def setUp(self):
     options = {"url": "http://www.gravatar.com/avatar/0?d=mm"}
     self.connection = Camera(options)
     self.camera = LightSensor(options, self.connection)