Created
June 5, 2012 20:49
-
-
Save TiuTalk/2877779 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import unittest | |
from fizzbuzz import FizzBuzz | |
class TestFizzBuzz(unittest.TestCase): | |
def test_numeroSimples(self): | |
self.assertEqual(FizzBuzz(1), 1) | |
self.assertEqual(FizzBuzz(2), 2) | |
self.assertEqual(FizzBuzz(4), 4) | |
def test_numeroMultiploDeTres(self): | |
self.assertEqual(FizzBuzz(3), "fizz") | |
self.assertEqual(FizzBuzz(9), "fizz") | |
def test_numeroMultiploDeCinco(self): | |
self.assertEqual(FizzBuzz(5), "buzz") | |
if __name__ == '__main__': | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment