%%file with spaces in filename
()
| 937 | nt.assert_in('line3\n', s) |
| 938 | |
| 939 | def test_file_spaces(): |
| 940 | """%%file with spaces in filename""" |
| 941 | ip = get_ipython() |
| 942 | with TemporaryWorkingDirectory() as td: |
| 943 | fname = "file name" |
| 944 | ip.run_cell_magic("file", '"%s"'%fname, u'\n'.join([ |
| 945 | 'line1', |
| 946 | 'line2', |
| 947 | ])) |
| 948 | with open(fname) as f: |
| 949 | s = f.read() |
| 950 | nt.assert_in('line1\n', s) |
| 951 | nt.assert_in('line2', s) |
| 952 | |
| 953 | def test_script_config(): |
| 954 | ip = get_ipython() |
nothing calls this directly
no test coverage detected