fix 2 typos inside test_module.py (#4)

This commit is contained in:
Dylan Buchi 2021-07-13 01:27:30 -03:00 committed by GitHub
parent 23c6841fda
commit c1b30742b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class UnitTests(unittest.TestCase):
expected = 7.0710678118654755 expected = 7.0710678118654755
self.assertEqual(actual, expected, 'Expected diagonal of square to be 7.0710678118654755') self.assertEqual(actual, expected, 'Expected diagonal of square to be 7.0710678118654755')
def test_set_atributes(self): def test_set_attributes(self):
self.rect.set_width(7) self.rect.set_width(7)
self.rect.set_height(8) self.rect.set_height(8)
self.sq.set_side(2) self.sq.set_side(2)
@ -79,7 +79,7 @@ class UnitTests(unittest.TestCase):
expected = "*******\n*******\n*******\n" expected = "*******\n*******\n*******\n"
self.assertEqual(actual, expected, 'Expected rectangle picture to be different.') self.assertEqual(actual, expected, 'Expected rectangle picture to be different.')
def test_squaree_picture(self): def test_square_picture(self):
self.sq.set_side(2) self.sq.set_side(2)
actual = self.sq.get_picture() actual = self.sq.get_picture()
expected = "**\n**\n" expected = "**\n**\n"