#NEWLINE# def test_date_field( self ) : #NEWLINE# #INDENT# shp_file = os . path . join ( TEST_DATA , 'cities' , 'cities.shp' ) #NEWLINE# model_def = ogrinspect ( shp_file , 'City' ) #NEWLINE# expected = [ '# This is an auto-generated Django model module created by ogrinspect.' , 'from django.contrib.gis.db import models' , '' , 'class City(models.Model):' , '    name = models.CharField(max_length=80)' , '    population = models.FloatField()' , '    density = models.FloatField()' , '    created = models.DateField()' , '    geom = models.PointField(srid=-1)' , '    objects = models.GeoManager()' ] #NEWLINE# self . assertEqual ( model_def , '\n' . join ( expected ) )