Last active
November 13, 2017 11:08
-
-
Save sleepyfox/573cd9fcdc81fdd8b60c2fa18962be04 to your computer and use it in GitHub Desktop.
A starting point for the Three Men's Morris game kata in Python
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 Three Men's Morris game" | |
import unittest | |
class Game(): | |
def thing(self): | |
return False | |
class ThreeMensMorrisTests(unittest.TestCase): | |
def test_thing(self): | |
"test thing is True" | |
self.game = Game() | |
self.assertTrue(self.game.thing()) | |
# Run the tests with `python test_game.py` | |
if __name__ == "__main__": | |
unittest.main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment