コード例 #1
0
ファイル: test_path.py プロジェクト: fariasjr/CitiTuirer
def test_get_long_path_name_win32():
    with TemporaryDirectory() as tmpdir:

        # Make a long path. Expands the path of tmpdir prematurely as it may already have a long 
        # path component, so ensure we include the long form of it
        long_path = os.path.join(path.get_long_path_name(tmpdir), 'this is my long path name')
        os.makedirs(long_path)

        # Test to see if the short path evaluates correctly.
        short_path = os.path.join(tmpdir, 'THISIS~1')
        evaluated_path = path.get_long_path_name(short_path)
        nt.assert_equal(evaluated_path.lower(), long_path.lower())
コード例 #2
0
ファイル: test_path.py プロジェクト: BarnetteME1/DnD-stuff
def test_get_long_path_name_win32():
    with TemporaryDirectory() as tmpdir:

        # Make a long path. Expands the path of tmpdir prematurely as it may already have a long 
        # path component, so ensure we include the long form of it
        long_path = os.path.join(path.get_long_path_name(tmpdir), 'this is my long path name')
        os.makedirs(long_path)

        # Test to see if the short path evaluates correctly.
        short_path = os.path.join(tmpdir, 'THISIS~1')
        evaluated_path = path.get_long_path_name(short_path)
        nt.assert_equal(evaluated_path.lower(), long_path.lower())
コード例 #3
0
ファイル: test_path.py プロジェクト: ANB2/ipython
def test_get_long_path_name_win32():
    with TemporaryDirectory() as tmpdir:

        # Make a long path.
        long_path = os.path.join(tmpdir, u'this is my long path name')
        os.makedirs(long_path)

        # Test to see if the short path evaluates correctly.
        short_path = os.path.join(tmpdir, u'THISIS~1')
        evaluated_path = path.get_long_path_name(short_path)
        nt.assert_equal(evaluated_path.lower(), long_path.lower())
コード例 #4
0
ファイル: test_path.py プロジェクト: rajatkapoor/ipython
def test_get_long_path_name_win32():
    with TemporaryDirectory() as tmpdir:

        # Make a long path.
        long_path = os.path.join(tmpdir, u'this is my long path name')
        os.makedirs(long_path)

        # Test to see if the short path evaluates correctly.
        short_path = os.path.join(tmpdir, u'THISIS~1')
        evaluated_path = path.get_long_path_name(short_path)
        nt.assert_equal(evaluated_path.lower(), long_path.lower())
コード例 #5
0
ファイル: test_path.py プロジェクト: BarnetteME1/DnD-stuff
def test_get_long_path_name():
    p = path.get_long_path_name('/usr/local')
    nt.assert_equal(p,'/usr/local')
コード例 #6
0
ファイル: test_path.py プロジェクト: monker490/WordVec
def test_get_long_path_name():
    p = path.get_long_path_name('/usr/local')
    nt.assert_equal(p, '/usr/local')
コード例 #7
0
ファイル: test_path.py プロジェクト: markvoorhies/ipython
def test_get_long_path_name_win32():
    p = path.get_long_path_name('c:\\docume~1')
    nt.assert_equals(p,u'c:\\Documents and Settings') 
コード例 #8
0
ファイル: test_path.py プロジェクト: aereinha/ipython
def test_get_long_path_name():
    p = path.get_long_path_name("/usr/local")
    nt.assert_equal(p, "/usr/local")
コード例 #9
0
ファイル: test_path.py プロジェクト: aereinha/ipython
def test_get_long_path_name_win32():
    p = path.get_long_path_name("c:\\docume~1")
    nt.assert_equal(p, u"c:\\Documents and Settings")
コード例 #10
0
ファイル: test_path.py プロジェクト: sratcliffe/ipython
def test_get_long_path_name_win32():
    p = path.get_long_path_name('c:\\docume~1')
    nt.assert_equals(p, u'c:\\Documents and Settings')
コード例 #11
0
ファイル: test_path.py プロジェクト: oscargus/ipython
def test_get_long_path_name():
    p = path.get_long_path_name("/usr/local")
    assert p == "/usr/local"
コード例 #12
0
ファイル: test_path.py プロジェクト: terrdavis/ipython
def test_get_long_path_name():
    p = path.get_long_path_name("/usr/local")
    nt.assert_equal(p, "/usr/local")