<s> import os <EOL> from metakernel . tests . utils import get_kernel , get_log_text , clear_log_text <EOL> def test_cd_magic ( ) : <EOL> kernel = get_kernel ( ) <EOL> kernel . do_execute ( "<STR_LIT>" ) <EOL> assert os . getcwd ( ) == os . path . expanduser ( '<STR_LIT>' ) , os . getcwd ( ) <EOL> clear_log_text ( kernel ) <EOL> kernel . do_execute ( '<STR_LIT>' ) <EOL> assert os . getcwd ( ) in get_log_text ( kernel ) </s>
