def test_steam2id_rendering_non_individual(): with pytest.raises(Exception): sid = SteamID() sid.universe = SteamID.Universe.PUBLIC sid.type = SteamID.Type.CLAN sid.instance = SteamID.Instance.DESKTOP sid.accountid = 4681548 sid._as_steam2()
def test_steam2id_rendering_universe_0(): sid = SteamID() sid.universe = SteamID.Universe.PUBLIC sid.type = SteamID.Type.INDIVIDUAL sid.instance = SteamID.Instance.DESKTOP sid.accountid = 46143802 assert sid.as_steam2_zero == "STEAM_0:0:23071901" assert sid._as_steam2(False) == "STEAM_0:0:23071901"