def when_date(datum): expect(get_value(datum, '_date')) == \ (datetime(2016, 11, 5), {'num_format': "mmm yyyy"})
def when_bool(datum): expect(get_value(datum, '_bool')) == (True, None)
def when_float(datum): expect(get_value(datum, '_float')) == (2.3, None)
def when_float_as_a_percentage(datum): expect(get_value(datum, '_float_percent')) == \ (0.5, {'num_format': "0.00%"})
def when_int(datum): expect(get_value(datum, '_int')) == (1, None)