def test_choiceinrange(self): gen = (x for x in range(1000)) assert iterdom.choice(gen) < 1000
def test_choicetype(self): gen = (x for x in range(1000)) assert type(iterdom.choice(gen)) == int