def test_contest(): eq(_.contest(433), { "name": "Codeforces Round #248 (Div. 2)", "problems": [ ("A", "Kitahara Haruki's Gift"), ("B", "Kuriyama Mirai's Stones"), ("C", "Ryouko's Memory Note"), ("D", "Nanami's Digital Board"), ("E", "Tachibana Kanade's Tofu"), ], }) eq(_.contest(1000), None) eq(_.contest(0), None)