def test_next_key() -> None: assert next_key("statement", {}) == "statement" assert next_key("statement", {"foo": 1}) == "statement" assert next_key("statement", {"foo": 1, "statement": 1}) == "statement-2" assert ( next_key("statement", {"statement": 1, "statement-2": 1}) == "statement-3" )
def test_next_key(): assert next_key('statement', []) == 'statement' assert next_key('statement', ['foo']) == 'statement' assert next_key('statement', ['foo', 'statement']) == 'statement-2' assert next_key('statement', ['statement', 'statement-2']) == 'statement-3'
def test_next_key(): assert next_key("statement", []) == "statement" assert next_key("statement", ["foo"]) == "statement" assert next_key("statement", ["foo", "statement"]) == "statement-2" assert next_key("statement", ["statement", "statement-2"]) == "statement-3"