[PATCH v5 2/4] test/py: Handle expected reset by command