Example #1
0
 def test_production_set_product_error_unavailable_almost_night(self):
     """
     Move a scene status from error to unavailable based on the solar zenith (SR)
     error message
     """
     order = Order.find(self.mock_order.generate_testing_order(self.user_id))
     scene = order.scenes({'name !=': 'plot'})[0]
     production_provider.set_product_error(name=scene.name,
                                           orderid=order.orderid,
                                           processing_loc='L8SRLEXAMPLE',
                                           error='solar zenith angle is too large')
     scene = Scene.by_name_orderid(name=scene.name, order_id=order.id)
     self.assertTrue('unavailable' == scene.status)
     self.assertTrue('Solar zenith angle is too large, cannot process scene to SR' in scene.note)