def test_gauge(self):
        with patch("redis_metrics.templatetags.redis_metric_tags.get_r") as mock_r:
            inst = mock_r.return_value
            inst.get_gauge.return_value = 100

            size = 50
            maximum = 200
            result = taglib.gauge("test-slug", maximum, size)
            expected_result = {
                'slug': "test-slug",
                'current_value': 100,
                'max_value': maximum,
                'size': size,
                'diff': maximum - 100
            }
            self.assertEqual(result, expected_result)
            mock_r.assert_called_once_with()
            inst.get_gauge.assert_called_once_with("test-slug")
Open the PE File using the Python pefile module.
dataset/ETHPy150Open bradmontgomery/django-redis-metrics/redis_metrics/tests/test_templatetags.py/TestTemplateTags.test_gauge--crossover with--dataset/ETHPy150Open ClickSecurity/data_hacking/pefile_classification/pe_features.py/PEFileFeatures.open_using_pefile