def METHOD_NAME():
    with mock.patch('sys.stdout', new=StringIO()) as output:
        modules.main(["print_version"])
        assert output.getvalue() == '1.2.3.dev\n'
    with mock.patch('sys.stdout', new=StringIO()) as output:
        modules.main(["replace_version", "--old", "1.2.3.dev", "--new", "1.2.4.dev"])
        assert output.getvalue() == 'Successfully replaced version 1.2.3.dev with 1.2.4.dev.\n'
    with mock.patch('sys.stdout', new=StringIO()) as output:
        modules.main(["print_version"])
        assert output.getvalue() == '1.2.4.dev\n'