Guest User

Untitled

a guest
Jul 17th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. import unittest
  2. from fizzbuzz import *
  3.  
  4. class FizzBuzzTestCase(unittest.TestCase):
  5.  
  6. def test_retornaFizzBuzz_com_1(self):
  7. assert executaFizzBuzz(1) == 1
  8. def test_retornaFizzBuzz_com_2(self):
  9. assert executaFizzBuzz(2) == 2
  10. def test_retornaFizzBuzz_com_3(self):
  11. assert executaFizzBuzz(3) == 'fizz'
  12. def test_retornaFizzBuzz_com_4(self):
  13. assert executaFizzBuzz(4) == 4
  14. def test_retornaFizzBuzz_com_5(self):
  15. assert executaFizzBuzz(5) == 'buzz'
  16. def test_retornaFizzBuzz_com_15(self):
  17. assert executaFizzBuzz(15) == 'fizz-buzz'
  18. def test_retornaFizzBuzz_com_25(self):
  19. assert executaFizzBuzz(25) == 'buzz'
  20. def test_retornaFizzBuzz_com_99(self):
  21. assert executaFizzBuzz(99) == 'fizz'
  22. def test_retornaFizzBuzz_com_125(self):
  23. assert executaFizzBuzz(125) == 'buzz'
  24.  
  25. if __name__ == '__main__':
  26. unittest.main()
Add Comment
Please, Sign In to add comment