##// END OF EJS Templates
Added test code for 'commenting out' feature of alias magic
Thomas Adriaan Hellinger -
Show More
@@ -38,4 +38,13 b' def test_alias_args_error():'
38 with capture_output() as cap:
38 with capture_output() as cap:
39 _ip.run_cell('parts 1')
39 _ip.run_cell('parts 1')
40
40
41 nt.assert_equal(cap.stderr.split(':')[0], 'UsageError') No newline at end of file
41 nt.assert_equal(cap.stderr.split(':')[0], 'UsageError')
42
43 def test_alias_args_commented():
44 """Check that alias correctly ignores 'commented out' args"""
45 _ip.alias_manager.define_alias('commetarg', 'echo this is %%s a "commented out" arg')
46
47 with capture_output as cap:
48 _ip.run_cell('commetarg')
49
50 nt.assert_equal(cap.stdout, 'this is %s a "commented out" arg') No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now