Exemple #1
0
def test__infer_protocol_local():
    """ Unit tests for _infer_protocol method, local case. """
    assert FileIO._infer_protocol(TEST_LOCAL) is Protocols.FILE
Exemple #2
0
def test__infer_protocol_unknown():
    """ Unit tests for _infer_protocol method, unknown case.  """
    assert FileIO._infer_protocol(TEST_UNKNOWN) is Protocols.UNKNOWN
Exemple #3
0
def test__infer_protocol_http():
    """ Unit tests for _infer_protocol method, http case. """
    assert FileIO._infer_protocol(TEST_URL) is Protocols.HTTP