def test_parse_none(self): assert parse_instances(None) is None assert parse_instances("") is None
def test_parse_instances(self): instances = '0,1-3,5' x = parse_instances(instances) assert x == [0, 1, 2, 3, 5]