import a_file

def test_a(capsys):
    assert a_file.bla() == 5
    assert a_file.LOG_MESSAGE in capsys.readouterr().err

[((4, 11, 4, 23), 'a_file.bla', 'a_file.bla', ({}, {}), '()', False, 'import a_file\n')]