예제 #1
0
파일: random_spec.py 프로젝트: bfirsh/pspec
 def it_raises_an_exception_for_a_sample_size_larger_than_the_sequence():
     with assert_raises(ValueError):
         random.sample(range(10), 20)
예제 #2
0
파일: random_spec.py 프로젝트: bfirsh/pspec
 def it_raises_an_exception_for_an_immutable_sequence():
     with assert_raises(TypeError):
         random.shuffle((1, 2, 3))