Add tests for DataType class.

Note that these require django-nose instead of the stock django test
runner, due to the use of generator tests (see nose docs)