def test_config_parser_decode_installed(): parser = ConfigParser(None) games = parser.decode({ "s1": { "ServerUid": "s1", "Resumable": "false" } }) assert games[0].uid == "s1" assert games[0].uninstall_tag == "s1"
def test_config_parser_decode_last_played(): parser = ConfigParser(None) games = parser.decode({"s2": {"LastPlayed": "1552039613"}}) assert games[0].uid == "s2" assert games[0].uninstall_tag == None assert games[0].last_played == '1552039613'