def test_import_lab_offline(
    client_library_compatible_version, mocked_session, tmp_path: Path
):
    client_library = ClientLibrary(
        url="http://0.0.0.0/fake_url/", username="******", password="******"
    )
    topology_file_path = "import_export/SampleData/topology-v0_0_4.json"
    topology = pkg_resources.resource_string("simple_common", topology_file_path)
    client_library.import_lab(topology, "topology-v0_0_4", offline=True)
def test_import_lab_offline(client_library_server_2_0_0, mocked_session,
                            tmp_path: Path):
    client_library = ClientLibrary(url="http://0.0.0.0/fake_url/",
                                   username="******",
                                   password="******")
    topology_file_path = "tests/test_data/sample_topology.json"
    with open(topology_file_path) as fh:
        topology_file = fh.read()
        client_library.import_lab(topology_file,
                                  "topology-v0_0_4",
                                  offline=True)