def test_alias_args_commented_nargs():
 am = _ip.alias_manager
 alias_name = 'comargcount'
 cmd = 'echo this is %%s a commented out arg and this is not %s'
 am.define_alias(alias_name, cmd)
 assert am.is_alias(alias_name)
 thealias = am.get_alias(alias_name)
 nt.assert_equal(thealias.nargs, 1)

def test_alias_args_commented_nargs ( ) : am = _ip . alias_manager alias_name = 'comargcount' cmd = 'echo this is %%s a commented out arg and this is not %s' am . define_alias ( alias_name , cmd ) assert am . is_alias ( alias_name ) thealias = am . get_alias ( alias_name ) nt . assert_equal ( thealias . nargs , 1 )
check that alias correctly counts args .