self.state = None
self.result = None
- @property
- def type(self):
- return None
-
def check(self):
# handle the 'is present' check
if self.expected == 'is present':
f'invalid opt type "{opt.type}"'
assert(data_type in SIMPLE_OPTION_TYPES), \
f'invalid data type "{data_type}"'
+ assert(data), \
+ 'empty data'
if data_type != opt.type:
return