Skip to content

Instantly share code, notes, and snippets.

@halldorel
Created March 19, 2014 17:15
Show Gist options
  • Save halldorel/9646514 to your computer and use it in GitHub Desktop.
Save halldorel/9646514 to your computer and use it in GitHub Desktop.
Test cases
# 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