1
0
mirror of https://github.com/django/django.git synced 2024-12-23 09:36:06 +00:00
django/tests/field_subclassing/tests.py
2015-09-23 19:31:09 -04:00

14 lines
348 B
Python

from __future__ import unicode_literals
from django.db import connection
from django.test import SimpleTestCase
from .fields import CustomTypedField
class TestDbType(SimpleTestCase):
def test_db_parameters_respects_db_type(self):
f = CustomTypedField()
self.assertEqual(f.db_parameters(connection)['type'], 'custom_field')