Simple experiment of using cocotb with a small design from https://github.com/intel/rapid-design-methods-for-developing-hardware-accelerators
You need to clone https://github.com/potentialventures/cocotb.git in this directory. Then:
cd clamper/tests
make