def test_xy_ordered_cube(self): """Test extraction of diagnostic data that is natively ordered xy.""" plugin = SpotExtraction() expected = [0, 0, 12, 12] result = plugin.extract_diagnostic_data(self.coordinate_cube, self.diagnostic_cube_xy) self.assertArrayEqual(result, expected)
def test_yx_ordered_cube(self): """Test extraction of diagnostic data that is natively ordered yx. This will be reordered before extraction to become xy.""" plugin = SpotExtraction() expected = [0, 0, 12, 12] result = plugin.extract_diagnostic_data(self.coordinate_cube, self.diagnostic_cube_yx) self.assertArrayEqual(result, expected)