py.tests for rg.py