diff --git a/src/test_CCoinBox.py b/src/test_CCoinBox.py index 3937536..01e4958 100644 --- a/src/test_CCoinBox.py +++ b/src/test_CCoinBox.py @@ -1,6 +1,7 @@ import unittest from CCoinBox import CCoinBox + class Test_CCoinBox(unittest.TestCase): def test_pass(self): @@ -26,4 +27,11 @@ def test_permet_une_double_vente(self): coinBox.ajouter_25c() coinBox.ajouter_25c() coinBox.vente() - self.assertEqual(coinBox.get_vente_permise(), True) \ No newline at end of file + self.assertEqual(coinBox.get_vente_permise(), True) + + def test_monnaie_apres_vente(self): + coinBox = CCoinBox() + coinBox.ajouter_25c() + coinBox.ajouter_25c() + coinBox.vente() + self.assertEqual(coinBox.get_monnaie_courante() == 0, True)