-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove converting PD login to lowercase * Update PogoAuth for google to convert to lowercase
- Loading branch information
1 parent
c45b823
commit e8c60d5
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,3 +73,16 @@ def test_device_dependency(self): | |
response = self.api.delete(pogoauth_obj['uri']) | ||
self.assertEqual(response.status_code, 412) | ||
self.remove_resources() | ||
|
||
def test_case_sensitivity_google(self): | ||
payload = copy.copy(APIPogoAuth.base_payload) | ||
payload["username"] = "[email protected]" | ||
elem, response = self.creator.create_valid_resource("pogoauth", payload=payload) | ||
self.assertTrue(response.json()["username"] == payload["username"].lower()) | ||
|
||
def test_case_sensitivity_ptc(self): | ||
payload = copy.copy(APIPogoAuth.base_payload) | ||
payload["username"] = "POGOAUTH" | ||
payload["login_type"] = "ptc" | ||
elem, response = self.creator.create_valid_resource("pogoauth", payload=payload) | ||
self.assertTrue(response.json()["username"] == payload["username"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters