<s> """<STR_LIT>""" <EOL> from __future__ import division , print_function , unicode_literals <EOL> import os <EOL> assert os . environ [ '<STR_LIT>' ] <EOL> import sys <EOL> sys . path . insert ( <NUM_LIT:0> , '<STR_LIT>' ) <EOL> import pyglet <EOL> assert pyglet . mock_level == <NUM_LIT:1> <EOL> import sys <EOL> import os <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' ) ) <EOL> import py <EOL> import cocos <EOL> import cocos . layer <EOL> from cocos . tiles import RectMap , RectCell , RectMapCollider <EOL> from cocos . rect import Rect <EOL> import aux_RectMapCollider__no_stuck as aux <EOL> aux . RectMap_cls = RectMap <EOL> aux . RectCell = RectCell <EOL> aux . Rect = Rect <EOL> maps_cache = aux . generate_maps ( '<STR_LIT:->' ) <EOL> def pytest_generate_tests ( metafunc ) : <EOL> for funcargs in metafunc . cls . params [ metafunc . function . __name__ ] : <EOL> metafunc . addcall ( funcargs = funcargs ) <EOL> scenario = [ d for d in aux . case_generator ( aux . first_expansion ( maps_cache , aux . common_base_cases ) ) ] <EOL> class TestClass ( ) : <EOL> params = { <EOL> '<STR_LIT>' : scenario , <EOL> } <EOL> def test_no_stuck ( self , generic_id , tilemap , start_rect , dx , dy , expect_dxdy ) : <EOL> collider = RectMapCollider ( ) <EOL> new = start_rect . copy ( ) <EOL> new . x += dx <EOL> new . y += dy <EOL> new_dx , new_dy = collider . collide_map ( tilemap , start_rect , new , dx , dy ) <EOL> assert new . position == ( start_rect . x + expect_dxdy [ <NUM_LIT:0> ] , <EOL> start_rect . y + expect_dxdy [ <NUM_LIT:1> ] ) <EOL> assert ( new_dx , new_dy ) == expect_dxdy </s>
