<s> import unittest <EOL> import pygame <EOL> from pyplatformerengine . utilities . ProximityManager import ProximityManager <EOL> class TestProximityManager ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . entityRect = pygame . Rect ( <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:100> , <NUM_LIT:100> ) <EOL> def testCanCalculateObjectRadiusAndCenterpoint ( self ) : <EOL> class Tmp : <EOL> iHeight = <NUM_LIT:100> <EOL> iWidth = <NUM_LIT:100> <EOL> entity = Tmp ( ) <EOL> entity . rect = self . entityRect <EOL> proximityManager = ProximityManager ( None ) <EOL> radius , x , y = proximityManager . calculateObjectRadiusAndCenterpoint ( entity ) <EOL> self . assertEqual ( <NUM_LIT> , radius , "<STR_LIT>" ) <EOL> self . assertEqual ( <NUM_LIT:50> , x , "<STR_LIT>" ) <EOL> self . assertEqual ( <NUM_LIT:50> , y , "<STR_LIT>" ) <EOL> def testCanReturnTrueIfObjectIsInProximity ( self ) : <EOL> proximityManager = ProximityManager ( None ) <EOL> result = proximityManager . determineIfObjectsAreInVicinity ( <NUM_LIT:5> , <NUM_LIT:5> , <NUM_LIT:30> , <NUM_LIT:20> , <NUM_LIT:20> , <NUM_LIT:10> ) <EOL> self . assertTrue ( result ) <EOL> def testCanReturnFalseIfObjectIsInProximity ( self ) : <EOL> proximityManager = ProximityManager ( None ) <EOL> result = proximityManager . determineIfObjectsAreInVicinity ( <NUM_LIT:5> , <NUM_LIT:5> , <NUM_LIT:30> , <NUM_LIT> , <NUM_LIT> , <NUM_LIT:10> ) <EOL> self . assertFalse ( result ) </s>
