1. test_users use pure function to replace class , because mock can not works with pytest's funcarg