Fix: update old name new_alien_list

This commit is contained in:
Matthias Rahlf
2022-02-19 09:07:28 +01:00
committed by BethanyG
parent 65ea8cab41
commit 6abd10db16
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# TODO: Create a class called "Alien" here
def new_alien_list(positions):
def new_aliens_collection(positions):
"""Function taking a list of position tuples, creating one Alien instance per position.
:param positions: list - A list of tuples of (x, y) coordinates.

View File

@@ -132,7 +132,7 @@ class ClassesTest(unittest.TestCase):
def test_new_aliens_collection(self):
position_data = [(-2, 6), (1, 5), (-4, -3)]
obj_list = new_aliens_collection(position_data)
obj_error = "new_alien_list must return a list of Alien objects."
obj_error = "new_aliens_collection must return a list of Alien objects."
for obj, position in zip(obj_list, position_data):
self.assertIsInstance(obj, Alien, msg=obj_error)