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