def testAcceptNone(self): decoder = option_decoders.PerCloudConfigDecoder(none_ok=True, option=_OPTION) self.assertIsNone(decoder.Decode(None, _COMPONENT, {}))
def setUp(self): super(PerCloudConfigDecoderTestCase, self).setUp() self._decoder = option_decoders.PerCloudConfigDecoder(option=_OPTION)