def test_cd_force_quiet():
    'Test OSMagics.cd_force_quiet option'
    _ip.config.OSMagics.cd_force_quiet = True
    osmagics = osm.OSMagics(shell=_ip)
    startdir = os.getcwd()
    ipdir = os.path.realpath(_ip.ipython_dir)
    try:
        with tt.AssertNotPrints(ipdir):
            osmagics.cd(('"%s"' % ipdir))
        with tt.AssertNotPrints(startdir):
            osmagics.cd('-')
    finally:
        os.chdir(startdir)
Test OSMagics.cd_force_quiet option
def test_cd_force_quiet():
    
    _ip.config.OSMagics.cd_force_quiet = True
    osmagics = osm.OSMagics(shell=_ip)
    startdir = os.getcwd()
    ipdir = os.path.realpath(_ip.ipython_dir)
    try:
        with tt.AssertNotPrints(ipdir):
            osmagics.cd(('"%s"' % ipdir))
        with tt.AssertNotPrints(startdir):
            osmagics.cd('-')
    finally:
        os.chdir(startdir)