Last active
August 29, 2015 14:21
-
-
Save sleepyfox/b3ce2536a76e8cd8107f to your computer and use it in GitHub Desktop.
Python TDD starter
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
"A test suite for a Roman numeral converter" | |
import unittest | |
class RomanNumeral(): | |
def toNumeral(self, v): | |
return True | |
class RomanNumerals(unittest.TestCase): | |
def test1isI(self): | |
"test 1" | |
self.roman = RomanNumeral() | |
self.assertEqual(self.roman.toNumeral(1), 'I') | |
if __name__ == "__main__": | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment