def test_with_incorrect_user_id(self): data = generate_password_auth_data({ 'id': uuid.uuid4().hex, 'password': self.password, }) self.authenticate(data, expected_status=httplib.UNAUTHORIZED)