def __init__(self, name, filename=None):
        self.name = name
        super(NamedRequirements, self).__init__(filename=filename)
def test_exceptions(self):
        self.assert_(issubclass(DeoptionError, TypeError))
        self.assertRaises(TypeError,
            lambda: Optional()
        )
        self.assertRaises(TypeError,
            lambda: Optional(NotPassed, NotPassed)
        )