def test_for_file_output(capsys):
    from app import my_main_code
    my_main_code()
    captured = capsys.readouterr()
    assert captured.out == "True\n"
def test_call_is_odd():
    with mock.patch('app.is_odd') as mocked_is_odd:
        from app import my_main_code
        my_main_code()
        mocked_is_odd.assert_called_with(45345)