def test_new_game2(
         self):  #checks that the function not works with unfull list
     deck1 = DeckOfCards()
     deck1.listcards.pop()
     deck2 = deck1.listcards.copy()
     deck1.newGame()
     self.assertTrue(deck1.listcards[0] == deck2[0])
 def test_shuffle(self):
     deck1 = DeckOfCards()
     deck2 = deck1.listcards.copy()
     deck1.newGame()
     break1 = 0
     for i in range(len(deck1.listcards)):
         if deck1.listcards[i] != deck2[i]:
             break1 += 1
             break
     self.assertTrue(break1 == 1)
 def test_new_game(
         self):  #checks that the function suffle the valid list (52 values)
     deck1 = DeckOfCards()
     deck2 = deck1.listcards.copy()
     deck1.newGame()
     break1 = 0
     for i in range(len(deck1.listcards)):
         if deck1.listcards[i] != deck2[i]:
             break1 += 1
             break
     self.assertTrue(break1 == 1)