import gentimer
import pytest


def test_submodule_ok():
    assert callable(gentimer.tk)
    pass


def test_unknown_submodule():
    with pytest.raises(AttributeError) as e:
        gentimer.xxx  # unkwnon submodule

    assert "module 'gentimer' has no attribute 'xxx'" in str(e.value)

988a661b6885619154f43ec1f96fc1aaa42e9e40
<mask token>

<mask token>


def test_unknown_submodule():
    with pytest.raises(AttributeError) as e:
        gentimer.xxx
    assert "module 'gentimer' has no attribute 'xxx'" in str(e.value)

<mask token>


def test_submodule_ok():
    assert callable(gentimer.tk)
    pass


def test_unknown_submodule():
    with pytest.raises(AttributeError) as e:
        gentimer.xxx
    assert "module 'gentimer' has no attribute 'xxx'" in str(e.value)

import gentimer
import pytest


def test_submodule_ok():
    assert callable(gentimer.tk)
    pass


def test_unknown_submodule():
    with pytest.raises(AttributeError) as e:
        gentimer.xxx
    assert "module 'gentimer' has no attribute 'xxx'" in str(e.value)

import gentimer
import pytest


def test_submodule_ok():
    assert callable(gentimer.tk)
    pass


def test_unknown_submodule():
    with pytest.raises(AttributeError) as e:
        gentimer.xxx  # unkwnon submodule

    assert "module 'gentimer' has no attribute 'xxx'" in str(e.value)
