<s> from django . test import RequestFactory <EOL> from django . http import HttpResponse <EOL> from django_replicated . decorators import use_state <EOL> from django_replicated . utils import routers <EOL> def test_user_state_decorator ( ) : <EOL> factory = RequestFactory ( ) <EOL> request = factory . get ( '<STR_LIT:/>' ) <EOL> def _view ( request ) : <EOL> return HttpResponse ( ) <EOL> use_state ( '<STR_LIT>' ) ( _view ) ( request ) <EOL> assert routers . state ( ) == '<STR_LIT>' </s>
