def METHOD_NAME():
    ''' Check that attempting to specify the type of a DataTypeSymbol with an
    invalid type results in the expected error. '''
    sym = DataTypeSymbol("my_type", DeferredType())
    with pytest.raises(TypeError) as err:
        sym.datatype = "integer"
    assert ("datatype of a DataTypeSymbol must be specified using a "
            "DataType but got: 'str'" in str(err.value))