{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "A function that exists for test purposes."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> checks = [\n...     '3, 6, min=1, max=3, test=list(a, b, c)',\n...     '3',\n...     '3, 6',\n...     '3,',\n...     'min=1, test=\"a b c\"',\n...     'min=5, test=\"a, b, c\"',\n...     'min=1, max=3, test=\"a, b, c\"',\n...     'min=-100, test=-99',\n...     'min=1, max=3',\n...     '3, 6, test=\"36\"',\n...     '3, 6, test=\"a, b, c\"',\n...     '3, max=3, test=list(\"a\", \"b\", \"c\")',\n...     '''3, max=3, test=list(\"'a'\", 'b', \"x=(c)\")''',\n...     \"test='x=fish(3)'\",\n...    ]\n>>> v = Validator({'test': _test})\n>>> for entry in checks:\n...     pprint(v.check(('test(%s)' % entry), 3))\n(3, ('3', '6'), {'max': '3', 'min': '1', 'test': ['a', 'b', 'c']})\n(3, ('3',), {})\n(3, ('3', '6'), {})\n(3, ('3',), {})\n(3, (), {'min': '1', 'test': 'a b c'})\n(3, (), {'min': '5', 'test': 'a, b, c'})\n(3, (), {'max': '3', 'min': '1', 'test': 'a, b, c'})\n(3, (), {'min': '-100', 'test': '-99'})\n(3, (), {'max': '3', 'min': '1'})\n(3, ('3', '6'), {'test': '36'})\n(3, ('3', '6'), {'test': 'a, b, c'})\n(3, ('3',), {'max': '3', 'test': ['a', 'b', 'c']})\n(3, ('3',), {'max': '3', 'test': [\"'a'\", 'b', 'x=(c)']})\n(3, (), {'test': 'x=fish(3)'})",
          "execution_status": null,
          "out": ""
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> v = Validator()\n>>> v.check('integer(default=6)', '3')\n3\n>>> v.check('integer(default=6)', None, True)\n6\n>>> v.get_default_value('integer(default=6)')\n6\n>>> v.get_default_value('float(default=6)')\n6.0\n>>> v.get_default_value('pass(default=None)')\n>>> v.get_default_value(\"string(default='None')\")\n'None'\n>>> v.get_default_value('pass')\nTraceback (most recent call last):\nKeyError: 'Check \"pass\" has no default value.'\n>>> v.get_default_value('pass(default=list(1, 2, 3, 4))')\n['1', '2', '3', '4']",
          "execution_status": null,
          "out": ""
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> v = Validator()\n>>> v.check(\"pass(default=None)\", None, True)\n>>> v.check(\"pass(default='None')\", None, True)\n'None'\n>>> v.check('pass(default=\"None\")', None, True)\n'None'\n>>> v.check('pass(default=list(1, 2, 3, 4))', None, True)\n['1', '2', '3', '4']",
          "execution_status": null,
          "out": ""
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Bug test for unicode arguments >>> v = Validator() >>> v.check(unicode('string(min=4)'), unicode('test')) == unicode('test') True"
            }
          ]
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> v = Validator()\n>>> v.get_default_value(unicode('string(min=4, default=\"1234\")')) == unicode('1234')\nTrue\n>>> v.check(unicode('string(min=4, default=\"1234\")'), unicode('test')) == unicode('test')\nTrue",
          "execution_status": null,
          "out": ""
        },
        {
          "__type": "Code",
          "__tag": 4050,
          "value": ">>> v = Validator()\n>>> default = v.get_default_value('string(default=None)')\n>>> default == None\n1",
          "execution_status": null,
          "out": ""
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Attributes",
    "Methods",
    "Returns",
    "Yields",
    "Receives",
    "Other Parameters",
    "Raises",
    "Warns",
    "Warnings",
    "Notes"
  ],
  "item_file": "/astropy/extern/configobj/validate.py",
  "item_line": 1336,
  "item_type": "function",
  "aliases": [
    "astropy.config.configuration.validate._test"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": {
    "__type": "SignatureNode",
    "__tag": 4029,
    "kind": "function",
    "parameters": [
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "value",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "POSITIONAL_OR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "args",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "VAR_POSITIONAL",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      },
      {
        "__type": "SigParam",
        "__tag": 4030,
        "name": "keywargs",
        "annotation": {
          "__type": "Empty",
          "__tag": 4031
        },
        "kind": "VAR_KEYWORD",
        "default": {
          "__type": "Empty",
          "__tag": 4031
        }
      }
    ],
    "return_annotation": {
      "__type": "Empty",
      "__tag": 4031
    },
    "target_name": "_test"
  },
  "references": null,
  "qa": "astropy.extern.configobj.validate:_test",
  "arbitrary": [],
  "local_refs": []
}