def test_import(self): g = MockGame() stack = Scorpion_RowStack(0, 0, g) cards = [ AbstractCard(1000 + r * 100 + s * 10, 0, s, r, g) for s, r in [(2, 5), (3, 7), (2, 7), (2, 0), (2, 3), (2, 4), (1, 4)] ] for c in cards: c.face_up = True c.item = MockItem() stack.addCard(c) stack.canMoveCards(stack.cards[6:]) self.assertTrue(stack)
def test_Spider_canMoveCards_non_top(self): stack = self._calc_Spider_stack() self.assertFalse(stack.canMoveCards(stack.cards[5:])) self.assertTrue(stack)
def test_canMoveCards_non_top(self): stack = self._calc_Scorpion_stack() self.assertTrue(stack.canMoveCards(stack.cards[4:])) self.assertTrue(stack)
def test_canMoveCards(self): stack = self._calc_Scorpion_stack() stack.canMoveCards(stack.cards[6:]) self.assertTrue(stack)
def test_canMoveCards_non_top(self): # noqa: N802 for is_scorpion_tail in [False, True]: stack = self._calc_scorpion_stack(is_scorpion_tail) self.assertTrue(stack.canMoveCards(stack.cards[4:])) self.assertTrue(stack)
def test_canMoveCards_non_top(self): for isScorpionTail in [False, True]: stack = self._calc_Scorpion_stack(isScorpionTail) self.assertTrue(stack.canMoveCards(stack.cards[4:])) self.assertTrue(stack)