def test_config_available_configs():
    ' test that config magic prints available configs in unique and\n    sorted order. '
    with capture_output() as captured:
        _ip.magic('config')
    stdout = captured.stdout
    config_classes = stdout.strip().split('\n')[1:]
    nt.assert_list_equal(config_classes, sorted(set(config_classes)))
test that config magic prints available configs in unique and
sorted order.
def test_config_available_configs():
    ' test that config magic prints available configs in unique and\n    sorted order. '
    with capture_output() as captured:
        _ip.magic('config')
    stdout = captured.stdout
    config_classes = stdout.strip().split('\n')[1:]
    nt.assert_list_equal(config_classes, sorted(set(config_classes)))