Advertisement
morty0505

Untitled

Oct 9th, 2016
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. def test_outside_1():
  3. with pytest.raises(ValueError):
  4. mandelbrot.compute_mandelbrot(3,4,3,4,500,500,1000,None)
  5.  
  6. def test_outside_2():
  7. with pytest.raises(ValueError):
  8. mandelbrot.compute_mandelbrot(-3,-4,-3,-4,500,500,1000,None)
  9.  
  10. def test_outside_3():
  11. with pytest.raises(ValueError):
  12. mandelbrot.compute_mandelbrot(1.5,2,1.5,2,500,500,1000,None)
  13.  
  14. def test_inside_1():
  15. mandelbrot.compute_mandelbrot(-3,3,-3,3,500,500,1000,None)
  16.  
  17. def test_inside_2():
  18. mandelbrot.compute_mandelbrot(0,1,-3,3,500,500,1000,None)
  19.  
  20. def test_inside_3():
  21. mandelbrot.compute_mandelbrot(-1,0,0,3,500,500,1000,None)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement