def test_get_card(self): player=Player('kobi',5000) player.getCard() self.assertTrue(len(player.list1)==0) player1=Player('avi',5000,5) deck=Deckofcards() player1.setHand(deck) player1.getCard() self.assertTrue(len(player1.list1),6)
def test_add_card(self): player1=Player('kobi',5000,5) deck1=Deckofcards() player1.setHand(deck1) player1.getCard() self.assertTrue(len(player1.list1),4)