From 5cb59537e97b4437b81b7674fd4215584f1bb21e Mon Sep 17 00:00:00 2001 From: int3l Date: Sat, 11 Apr 2020 19:05:53 +0300 Subject: [PATCH] Test for too large integer or numeric string SteamIDs --- tests/test_steamid.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_steamid.py b/tests/test_steamid.py index 82c37d8..1e7149a 100644 --- a/tests/test_steamid.py +++ b/tests/test_steamid.py @@ -121,6 +121,12 @@ class SteamID_initialization(unittest.TestCase): self.compare(SteamID("invalid_format"), [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 ######################################################