Example #1
0
 def test_reduce_amount2(self):
     player3 = Player('koko',12500, 10)
     player3.reduceAmount(10000)
     self.assertTrue(player3.sum1==2500)
Example #2
0
    def test_reduce_amount(self):

        player1 = Player('kobi', 5000, 5)
        player1.reduceAmount(3000)
        self.assertTrue(player1.sum1, 2000)
Example #3
0
    def test_reduce_amount1(self):

        player2 = Player('kobi', 0, 5)
        player2.reduceAmount(7500)
        self.assertTrue(player2.sum1==-7500)