def test_allowExt(self):
    "\n        Passing C{1} as the value to L{File}'s C{allowExt} argument\n        issues a warning and sets the ignored extensions to the\n        wildcard C{*}.\n        "
    with warnings.catch_warnings(record=True) as caughtWarnings:
        file = static.File(self.mktemp(), ignoredExts=True)
        self.assertEqual(file.ignoredExts, ['*'])
    self.assertEqual(len(caughtWarnings), 1)
Passing C{1} as the value to L{File}'s C{allowExt} argument
issues a warning and sets the ignored extensions to the
wildcard C{*}.
def test_allowExt(self):
    "\n        Passing C{1} as the value to L{File}'s C{allowExt} argument\n        issues a warning and sets the ignored extensions to the\n        wildcard C{*}.\n        "
    with warnings.catch_warnings(record=True) as caughtWarnings:
        file = static.File(self.mktemp(), ignoredExts=True)
        self.assertEqual(file.ignoredExts, ['*'])
    self.assertEqual(len(caughtWarnings), 1)