This file contains hidden or 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
import unittest | |
##################################################################### | |
# UNIT TEST | |
##################################################################### | |
class FizzBuzzTest(unittest.TestCase): | |
def test_number_3_should_return_number_fizz(self): | |
fizzbuzz_factory = FizzBuzzFactory() | |
fizzbuzz = fizzbuzz_factory.create() |
This file contains hidden or 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
import unittest | |
class FizzBuzzTest(unittest.TestCase): | |
def setUp(self): | |
self.fizzbuzz = FizzBuzz() | |
def test_number_indivisible_by_3_or_5_should_return_number(self): | |
result = self.fizzbuzz.take(1) | |
self.assertEqual(result, 1) |
NewerOlder