def METHOD_NAME():
    '''Tests that feature= works for optional features'''
    t = BoostBuild.Tester()
    t.write('Jamroot.jam', '''
    import feature : feature ;
    import toolset : flags ;
    feature f1 : 1 2 : optional ;
    make output.txt : : @run ;
    flags run OPTIONS <f1> ;
    actions run { echo b $(OPTIONS) > $(<) }
    ''')
    t.run_build_system(['f1='])
    t.expect_content("bin/*/output.txt", "b")
    t.cleanup()