def simple_setup(self): # Reset container. Container.reset_services() # Set up models. self.user = self.create_user() self.timeline = self.create_timeline(self.user)
def test_service_container_init(self): """ Testing the service container is initialize and we pulling services of other packages. """ Container.reset_services() # Checking event service. self.assertEquals(Container.services['events_service'], Events.Service) self.assertEquals(Container.events_service().info(), Events.Service().info()) # Testing location service. self.assertEquals(Container.services['location_service'], Location.Service)