def test_sensor_page(self, get_redis):
        """Check if the sensor page can load."""
        redis = mock.Mock()
        # Return False when asked if "sensors" exists.
        redis.exists.return_value = False
        get_redis.return_value = redis
        res = self.client.get("/dalton/sensor")
        self.assertEqual(res.status_code, 200, "A page with sensors")
Check if the sensor page can load.
tests/test_dalton.py