Browse Source
Test for too large integer or numeric string SteamIDs
pull/248/head
int3l
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
tests/test_steamid.py
|
@ -121,6 +121,12 @@ class SteamID_initialization(unittest.TestCase): |
|
|
self.compare(SteamID("invalid_format"), |
|
|
self.compare(SteamID("invalid_format"), |
|
|
[0, EType.Invalid, EUniverse.Invalid, 0]) |
|
|
[0, EType.Invalid, EUniverse.Invalid, 0]) |
|
|
|
|
|
|
|
|
|
|
|
def test_arg_too_large_invalid(self): |
|
|
|
|
|
self.compare(SteamID(111111111111111111111111111111111111111), |
|
|
|
|
|
[0, EType.Invalid, EUniverse.Invalid, 0]) |
|
|
|
|
|
self.compare(SteamID("1111111111111111111111111111111111111"), |
|
|
|
|
|
[0, EType.Invalid, EUniverse.Invalid, 0]) |
|
|
|
|
|
|
|
|
###################################################### |
|
|
###################################################### |
|
|
# KWARGS |
|
|
# KWARGS |
|
|
###################################################### |
|
|
###################################################### |
|
|