Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/test_CCoinBox.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import unittest
from CCoinBox import CCoinBox


class Test_CCoinBox(unittest.TestCase):

def test_pass(self):
Expand All @@ -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)
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)