def test_pick_have_suit(self):
        hand = engine.Hand()
        hand.add_card(models.Card(models.Suit.clubs, models.Rank.seven))

        top_card = models.Card(models.Suit.clubs, models.Rank.four)

        self.assertFalse(engine.valid_pick(hand, top_card, engine.GameState.NORMAL))
    def test_pick_when_in_wait(self):
        hand = engine.Hand()
        hand.add_card(models.Card(models.Suit.clubs, models.Rank.ace))
        hand.add_card(models.Card(models.Suit.clubs, models.Rank.four))

        top_card = models.Card(models.Suit.clubs, models.Rank.eight)

        self.assertFalse(engine.valid_pick(hand, top_card, engine.GameState.WAIT))
    def test_pick_have_two_in_pick_state(self):
        hand = engine.Hand()
        hand.add_card(models.Card(models.Suit.hearts, models.Rank.two))
        hand.add_card(models.Card(models.Suit.clubs, models.Rank.four))

        top_card = models.Card(models.Suit.clubs, models.Rank.two)

        self.assertFalse(engine.valid_pick(hand, top_card, engine.GameState.PICK))