<s> from __future__ import unicode_literals <EOL> from decimal import Decimal <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from mutant . contrib . numeric . models import ( <EOL> BigIntegerFieldDefinition , DecimalFieldDefinition , FloatFieldDefinition , <EOL> IntegerFieldDefinition , PositiveIntegerFieldDefinition , <EOL> PositiveSmallIntegerFieldDefinition , SmallIntegerFieldDefinition , <EOL> ) <EOL> from mutant . test . testcases import FieldDefinitionTestMixin <EOL> from . utils import BaseModelDefinitionTestCase <EOL> class NumericFieldDefinitionTestMixin ( FieldDefinitionTestMixin ) : <EOL> field_definition_category = _ ( '<STR_LIT>' ) <EOL> class SmallIntegerFieldDefinitionTest ( NumericFieldDefinitionTestMixin , <EOL> BaseModelDefinitionTestCase ) : <EOL> field_definition_cls = SmallIntegerFieldDefinition <EOL> field_definition_init_kwargs = { '<STR_LIT:default>' : <NUM_LIT:0> } <EOL> field_values = ( - <NUM_LIT> , <NUM_LIT> ) <EOL> class PositiveSmallIntegerFieldDefinitionTest ( NumericFieldDefinitionTestMixin , <EOL> BaseModelDefinitionTestCase ) : <EOL> field_definition_cls = PositiveSmallIntegerFieldDefinition <EOL> field_definition_init_kwargs = { '<STR_LIT:default>' : <NUM_LIT:0> } <EOL> field_values = ( <NUM_LIT> , <NUM_LIT> ) <EOL> class IntegerFieldDefinitionTest ( NumericFieldDefinitionTestMixin , <EOL> BaseModelDefinitionTestCase ) : <EOL> field_definition_cls = IntegerFieldDefinition <EOL> field_definition_init_kwargs = { '<STR_LIT:default>' : <NUM_LIT:0> } <EOL> field_values = ( <NUM_LIT> , - <NUM_LIT> ) <EOL> class PositiveIntegerFieldDefinitionTest ( NumericFieldDefinitionTestMixin , <EOL> BaseModelDefinitionTestCase ) : <EOL> field_definition_cls = PositiveIntegerFieldDefinition <EOL> field_definition_init_kwargs = { '<STR_LIT:default>' : <NUM_LIT:0> } <EOL> field_values = ( <NUM_LIT> , <NUM_LIT> ) <EOL> class BigIntegerFieldDefinitionTest ( NumericFieldDefinitionTestMixin , <EOL> BaseModelDefinitionTestCase ) : <EOL> field_definition_cls = BigIntegerFieldDefinition <EOL> field_definition_init_kwargs = { '<STR_LIT:default>' : <NUM_LIT:0> } <EOL> field_values = ( <NUM_LIT> , <NUM_LIT> ) <EOL> class FloatFieldDefinitionTest ( NumericFieldDefinitionTestMixin , <EOL> BaseModelDefinitionTestCase ) : <EOL> field_definition_cls = FloatFieldDefinition <EOL> field_definition_init_kwargs = { '<STR_LIT:default>' : <NUM_LIT:0> } <EOL> field_values = ( <NUM_LIT> , <NUM_LIT> ) <EOL> class DecimalFieldDefinitionTest ( NumericFieldDefinitionTestMixin , <EOL> BaseModelDefinitionTestCase ) : <EOL> field_definition_cls = DecimalFieldDefinition <EOL> field_definition_init_kwargs = { <EOL> '<STR_LIT:default>' : <NUM_LIT:0> , <EOL> '<STR_LIT>' : <NUM_LIT:15> , <EOL> '<STR_LIT>' : <NUM_LIT:7> <EOL> } <EOL> field_values = ( <EOL> Decimal ( '<STR_LIT>' ) , <EOL> Decimal ( '<STR_LIT>' ) , <EOL> ) </s>
