Exemplo n.º 1
0
 def test_make_random_points_returns_all_valid_points(self):
     for x, y in make_random_points((0, -3), (10, -1), 30):
         assert 0 <= x <= 10 and -3 <= y <= -1
Exemplo n.º 2
0
 def test_make_random_points_returns_correct_number_results(self):
     assert len(list(make_random_points((0, 0), (1, 1), 10))) == 10