Ejemplo n.º 1
0
def test_find_dfs_share_b():
    try:
        rslt = find_dfs_share('\\\\filex.com\\comm', case_sensative=True)
    except FindDfsShare as e:
        assert e.args[0] == "No dfs cache result found"
        return
    assert False, "no excption raised"
Ejemplo n.º 2
0
def test_find_dfs_share_c():
    rslt = find_dfs_share('\\\\Filex.com\\Comm')
    assert rslt == ('fxs02fs0100', 'Comm', 'filex.com', '')
Ejemplo n.º 3
0
def test_find_dfs_share_i():
    rslt = find_dfs_share('\\\\filex.com\\Comm\\DDS Bad Packs\\bar.jpeg',
                          case_sensative=True)
    assert rslt == ('FXB05FS0300', 'DDSFTP', 'filex.com',
                    'BadPacks\\bar.jpeg'), rslt
Ejemplo n.º 4
0
def test_find_dfs_share_h():
    rslt = find_dfs_share('\\\\filex.com\\Comm\\AS2\\Other\\Foo\\bar.txt',
                          case_sensative=True)
    assert rslt == ('fxb05fs0300', 'AS2', 'filex.com',
                    'Other\\Foo\\bar.txt'), rslt
Ejemplo n.º 5
0
def test_find_dfs_share_f():
    rslt = find_dfs_share('\\\\FXESB01.Filex.com\\Comm\\Foo',
                          case_sensative=True)
    assert rslt == ('fxesb01', 'Comm', 'filex.com', 'Foo'), rslt
Ejemplo n.º 6
0
def test_find_dfs_share_e():
    rslt = find_dfs_share('\\\\Filex.com\\Comm\\Foo', case_sensative=True)
    assert rslt == ('fxs02fs0100', 'Comm', 'filex.com', 'Foo'), rslt
Ejemplo n.º 7
0
def test_find_dfs_share_d():
    rslt = find_dfs_share('\\\\Filex.com\\Comm', case_sensative=True)
    assert rslt == ('FXB01FS0300', 'Comm', 'filex.com', '')