def test_config_print_class():
    " test that config with a classname prints the class's options. "
    with capture_output() as captured:
        _ip.magic('config TerminalInteractiveShell')
    stdout = captured.stdout
    if (not re.match('TerminalInteractiveShell.* options', stdout.splitlines()[0])):
        print(stdout)
        raise AssertionError("1st line of stdout not like 'TerminalInteractiveShell.* options'")
test that config with a classname prints the class's options.
def test_config_print_class():
    "  "
    with capture_output() as captured:
        _ip.magic('config TerminalInteractiveShell')
    stdout = captured.stdout
    if (not re.match('TerminalInteractiveShell.* options', stdout.splitlines()[0])):
        print(stdout)
        raise AssertionError("1st line of stdout not like 'TerminalInteractiveShell.* options'")