Show More
@@ -206,7 +206,7 b' def test_get_ipython_dir_1():' | |||||
206 | """test_get_ipython_dir_1, Testcase to see if we can call get_ipython_dir without Exceptions.""" |
|
206 | """test_get_ipython_dir_1, Testcase to see if we can call get_ipython_dir without Exceptions.""" | |
207 | env_ipdir = os.path.join("someplace", ".ipython") |
|
207 | env_ipdir = os.path.join("someplace", ".ipython") | |
208 | path._writable_dir = lambda path: True |
|
208 | path._writable_dir = lambda path: True | |
209 |
env['IPYTHON |
|
209 | env['IPYTHONDIR'] = env_ipdir | |
210 | ipdir = path.get_ipython_dir() |
|
210 | ipdir = path.get_ipython_dir() | |
211 | nt.assert_equal(ipdir, env_ipdir) |
|
211 | nt.assert_equal(ipdir, env_ipdir) | |
212 |
|
212 | |||
@@ -278,10 +278,10 b' def test_get_ipython_dir_6():' | |||||
278 |
|
278 | |||
279 | @with_environment |
|
279 | @with_environment | |
280 | def test_get_ipython_dir_7(): |
|
280 | def test_get_ipython_dir_7(): | |
281 |
"""test_get_ipython_dir_7, test home directory expansion on IPYTHON |
|
281 | """test_get_ipython_dir_7, test home directory expansion on IPYTHONDIR""" | |
282 | path._writable_dir = lambda path: True |
|
282 | path._writable_dir = lambda path: True | |
283 | home_dir = os.path.expanduser('~') |
|
283 | home_dir = os.path.expanduser('~') | |
284 |
env['IPYTHON |
|
284 | env['IPYTHONDIR'] = os.path.join('~', 'somewhere') | |
285 | ipdir = path.get_ipython_dir() |
|
285 | ipdir = path.get_ipython_dir() | |
286 | nt.assert_equal(ipdir, os.path.join(home_dir, 'somewhere')) |
|
286 | nt.assert_equal(ipdir, os.path.join(home_dir, 'somewhere')) | |
287 |
|
287 |
General Comments 0
You need to be logged in to leave comments.
Login now