# Path: sacred/optional.py
# def optional_import(*package_names):
# def get_tensorflow():


import pytest
from sacred.optional import optional_import, get_tensorflow, modules_exist
#!/usr/bin/env python
# coding=utf-8



def test_optional_import():
    has_pytest, pyt = optional_import("pytest")
    assert has_pytest
    assert pyt == pytest


def test_optional_import_nonexisting():

# Path: sacred/optional.py
# def optional_import(*package_names):
# def get_tensorflow():


# Path: tests/test_optional.py
import pytest
from sacred.optional import optional_import, get_tensorflow, modules_exist

#!/usr/bin/env python
# coding=utf-8



def test_optional_import():
    has_pytest, pyt = optional_import("pytest")
    assert has_pytest
    assert pyt == pytest


def test_optional_import_nonexisting():

    has_nonex, nonex = optional_import("clearlynonexistingpackage")