def test():
    import os
    try:
        import pytest
    except ImportError:
        import sys
        sys.stderr.write("You need to install py.test to run tests.\n\n")
        raise
    pytest.main(os.path.dirname(__file__))
Run the datashader test suite.
dataset/ETHPy150Open bokeh/datashader/datashader/__init__.py/test