def test_change_zoom_level_larger_content(self): cy.fill_array(self.dim, self.arr) dim, buf, change, self.buf_stat = change_zoom_level( self.position, self.buf_len, self.buf_stat, self.change_roll, self.dim, self.buf) nu_arr = buf[self.position[0]] cy.fill_bounds(dim, nu_arr) testing.assert_array_equal(np.mean(nu_arr), np.mean(self.arr))
def test_change_zoom_level_array_larger_content(self): cy.fill_array(self.dim, self.arr) dim, arr, change = change_zoom_level_array(self.dim, self.arr) cy.fill_bounds(dim, arr) testing.assert_array_equal(np.mean(arr), np.mean(self.arr))