def test_heartbeat_status_key(): account_id = 1 folder_id = 2 key = HeartbeatStatusKey(account_id, folder_id) assert str(key) == "1:2" key = HeartbeatStatusKey.from_string("2:1") assert key.account_id == 2 assert key.folder_id == 1