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"
def test_find_dfs_share_c(): rslt = find_dfs_share('\\\\Filex.com\\Comm') assert rslt == ('fxs02fs0100', 'Comm', 'filex.com', '')
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
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
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
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
def test_find_dfs_share_d(): rslt = find_dfs_share('\\\\Filex.com\\Comm', case_sensative=True) assert rslt == ('FXB01FS0300', 'Comm', 'filex.com', '')