Skip to content

Instantly share code, notes, and snippets.

@sleepyfox
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sleepyfox/b3ce2536a76e8cd8107f to your computer and use it in GitHub Desktop.
Save sleepyfox/b3ce2536a76e8cd8107f to your computer and use it in GitHub Desktop.
Python TDD starter
"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