def test_givenAMapContainingOneShapeAndADifferentShapeWhenFindingSimilarShapeInMapWithTheDifferentShapeThenReturnNone(self): myMap = Map() myMap.addShape(self.firstShape) similarShapeInMap = myMap.findSimilarShape(self.differentShape) self.assertEqual(None, similarShapeInMap)
def test_givenAMapContainingOneShapeAndSimilarShapeWhenFindingSimilarShapeInMapWithTheSimilarShapeThenReturnTheShapeContainedInMap(self): myMap = Map() myMap.addShape(self.firstShape) similarShapeInMap = myMap.findSimilarShape(self.secondShape) self.assertEqual(self.firstShape, similarShapeInMap)