Esempio n. 1
0
class TestBall(unittest.TestCase):

    def setUp(self):
        self.ball = Ball(5, 'black')

    def it_check_its_its_size(self):
        self.ball.size |should| equal_to(5)

    def it_check_its_its_collor(self):
        self.ball.collor |should| equal_to('black')

    def it_change_its_size(self):
        self.ball.change_size(7)
        self.ball.size |should| equal_to(7)

    def it_change_its_collor(self):
        self.ball.change_collor('white')
        self.ball.collor |should| equal_to('white')