Created
March 19, 2014 17:15
-
-
Save halldorel/9646514 to your computer and use it in GitHub Desktop.
Test cases
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
# UI state tests | |
def testTopCardIsDraggable(self): | |
game = deck.GameState() | |
game.draw() | |
game.draw() | |
is_draggable = game.table[0].top().draggable | |
self.assertTrue(is_draggable) | |
def testCardBelowIsNotDraggable(self): | |
game = deck.GameState() | |
game.draw() | |
game.draw() | |
is_draggable = game.table[0].deck[-2].draggable | |
self.assertFalse(is_draggable) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment