def capture(self):
        filename = self.get_new_photo_filename()
        open(self.camid + '/' + filename, 'wb').write(self.fake_shot)
        return filename
Test method on train set
dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/FakeCamera.capture--crossover with--dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/tests/test_cifar100.py/TestCIFAR100.test_adjust_to_be_viewed_with