def test_that_the_batch_status_of_a_service_is_cached(self):
        """
        Tests the scenario when there is a response in the caching period
        """
        with MockStatusService(status=200):
            all_status = HomeView.check_bulk_status(
                current_app.config['SYSTEMSGO_FRONT_END_SERVER_LIST']
            )
        for status in all_status:
            self.assertEqual(status['status'], 'online')

        with MockStatusService(status=400):
            all_status = HomeView.check_bulk_status(
                current_app.config['SYSTEMSGO_FRONT_END_SERVER_LIST']
            )
        for status in all_status:
            self.assertEqual(status['status'], 'online')
    def test_batch_statuses(self):
        """
        Tests that the staticmethod that tests a bulk set of services
        """
        with MockStatusService(status=200):
            all_status = HomeView.check_bulk_status(
                current_app.config['SYSTEMSGO_FRONT_END_SERVER_LIST']
            )

        for status in all_status:
            self.assertEqual(status['status'], 'online')