import a_file

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

[((46, 58), 'a_file.bla', 'a_file.bla', ([], {}), '()\n', (56, 58), False, 'import a_file\n')]