@any_field.register(models.SmallIntegerField)<EOL>def any_smallinteger_field(field, **kwargs):
min_value = kwargs.get('<STR_LIT>', -<NUM_LIT:255>)<EOL>max_value = kwargs.get('<STR_LIT>', <NUM_LIT:255>)<EOL>return xunit.any_int(min_value=min_value, max_value=max_value)<EOL>
Return random value for SmallIntegerValue
>>> result = any_field(models.SmallIntegerField())
>>> type(result)
<type 'int'>
>>> result > -256, result < 256
(True, True)