test_get_xdg_dir_1, check nonexistent xdg_dir
()
| 200 | |
| 201 | @with_environment |
| 202 | def test_get_xdg_dir_1(): |
| 203 | """test_get_xdg_dir_1, check nonexistent xdg_dir""" |
| 204 | reload(path) |
| 205 | path.get_home_dir = lambda : HOME_TEST_DIR |
| 206 | os.name = "posix" |
| 207 | sys.platform = "linux2" |
| 208 | env.pop('IPYTHON_DIR', None) |
| 209 | env.pop('IPYTHONDIR', None) |
| 210 | env.pop('XDG_CONFIG_HOME', None) |
| 211 | nt.assert_equal(path.get_xdg_dir(), None) |
| 212 | |
| 213 | @with_environment |
| 214 | def test_get_xdg_dir_2(): |