Exemple #1
0
    def test_show(self, mock_get_image):
        """Check showing."""
        from satpy.writers import show

        data = np.arange(25).reshape((5, 5))
        p = xr.DataArray(data, dims=['y', 'x'])
        show(p)
        self.assertTrue(mock_get_image.return_value.show.called)
Exemple #2
0
 def test_show(self, mock_get_image):
     """Check showing."""
     data = np.arange(25).reshape((5, 5))
     p = xr.DataArray(data, dims=['y', 'x'])
     show(p)
     self.assertTrue(mock_get_image.return_value.show.called)
Exemple #3
0
 def test_show(self, mock_get_image):
     data = np.arange(25).reshape((5, 5))
     p = dataset.Dataset(data)
     show(p)
     self.assertTrue(mock_get_image.return_value.show.called)
Exemple #4
0
 def test_show(self, mock_get_image):
     data = np.arange(25).reshape((5, 5))
     p = projectable.Projectable(data)
     show(p)
     self.assertTrue(mock_get_image.return_value.show.called)