Email Record: Python testing with Pytest :