<s> from django . core import checks <EOL> from django . db import models <EOL> from django . test import SimpleTestCase <EOL> from django . test . utils import isolate_apps <EOL> @ isolate_apps ( '<STR_LIT>' ) <EOL> class DeprecatedFieldsTests ( SimpleTestCase ) : <EOL> def test_IPAddressField_deprecated ( self ) : <EOL> class IPAddressModel ( models . Model ) : <EOL> ip = models . IPAddressField ( ) <EOL> model = IPAddressModel ( ) <EOL> self . assertEqual ( <EOL> model . check ( ) , <EOL> [ checks . Error ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> hint = '<STR_LIT>' , <EOL> obj = IPAddressModel . _meta . get_field ( '<STR_LIT>' ) , <EOL> id = '<STR_LIT>' , <EOL> ) ] , <EOL> ) <EOL> def test_CommaSeparatedIntegerField_deprecated ( self ) : <EOL> class CommaSeparatedIntegerModel ( models . Model ) : <EOL> csi = models . CommaSeparatedIntegerField ( max_length = <NUM_LIT:64> ) <EOL> model = CommaSeparatedIntegerModel ( ) <EOL> self . assertEqual ( <EOL> model . check ( ) , <EOL> [ checks . Warning ( <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' , <EOL> hint = '<STR_LIT>' , <EOL> obj = CommaSeparatedIntegerModel . _meta . get_field ( '<STR_LIT>' ) , <EOL> id = '<STR_LIT>' , <EOL> ) ] , <EOL> ) </s>
