def test_get_window_of_non_square_keeps_size_proportions_for_give_xsize(self):
    vr = self.read_only_virtual_geo_raster()
    win = Window(0, 0, 300, 400)
    r = vr.get_window(win, xsize=150)
    self.assertFalse((r.image.data == 0).all())
    self.assertFalse(r.image.mask.all())
    self.assertEqual(r.image.shape, (3, 200, 150))
def test_get_window_of_non_square_keeps_size_proportions_for_give_xsize(self):
    vr = self.read_only_virtual_geo_raster()
    win = Window(0, 0, 300, 400)
    r = vr.get_window(win, xsize=150)
    self.assertFalse((r.image.data == 0).all())
    self.assertFalse(r.image.mask.all())
    self.assertEqual(r.image.shape, (3, 200, 150))