'Test introspection of various Django field types'

@expectedFailureOnOracle
def test_field_types(self):

    assertFieldType = self.make_field_type_asserter()
    assertFieldType(u'char_field', u'models.CharField(max_length=10)')
    assertFieldType(u'comma_separated_int_field', u'models.CharField(max_length=99)')
    assertFieldType(u'date_field', u'models.DateField()')
    assertFieldType(u'date_time_field', u'models.DateTimeField()')
    assertFieldType(u'email_field', u'models.CharField(max_length=75)')
    assertFieldType(u'file_field', u'models.CharField(max_length=100)')
    assertFieldType(u'file_path_field', u'models.CharField(max_length=100)')
    if (connection.vendor == u'postgresql'):
        assertFieldType(u'ip_address_field', u'models.GenericIPAddressField()')
        assertFieldType(u'gen_ip_adress_field', u'models.GenericIPAddressField()')
    else:
        assertFieldType(u'ip_address_field', u'models.CharField(max_length=15)')
        assertFieldType(u'gen_ip_adress_field', u'models.CharField(max_length=39)')
    assertFieldType(u'slug_field', u'models.CharField(max_length=50)')
    assertFieldType(u'text_field', u'models.TextField()')
    assertFieldType(u'time_field', u'models.TimeField()')
    assertFieldType(u'url_field', u'models.CharField(max_length=200)')
