def it_raises_an_exception_for_a_sample_size_larger_than_the_sequence(): with assert_raises(ValueError): random.sample(range(10), 20)
def it_raises_an_exception_for_an_immutable_sequence(): with assert_raises(TypeError): random.shuffle((1, 2, 3))