Created
June 5, 2012 20:33
-
-
Save TiuTalk/2877656 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_FizzBuzz_de1(self): | |
self.assertEqual(FizzBuzz(1), 1) | |
def test_FizzBuzz_de2(self): | |
self.assertEqual(FizzBuzz(2), 2) | |
def test_FizzBuzz_de3_retorna_fizz(self): | |
self.assertEqual(FizzBuzz(3), "fizz") | |
if __name__ == '__main__': | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment