def test_alias_args_commented():
 _ip.magic('alias commetarg echo this is %%s a commented out arg')
 with capture_output() as cap:
  _ip.run_cell('commetarg')
 nt.assert_equal(cap.stdout, 'this is %s a commented out arg')

def test_alias_args_commented ( ) : _ip . magic ( 'alias commetarg echo this is %%s a commented out arg' ) with capture_output ( ) as cap : _ip . run_cell ( 'commetarg' ) nt . assert_equal ( cap . stdout , 'this is %s a commented out arg' )
check that alias correctly ignores commented out args .