@patch.object(R, '_categorize')
    def test_set_metric_with_category(self, mock_categorize):

        # get the metric keys so we can check for the appropriate calls
        self.r.set_metric('test-slug', 42, category='Test Category')
        mock_categorize.assert_called_once_with('test-slug', "Test Category")
Returns True if the given tag exists, False otherwise
dataset/ETHPy150Open bradmontgomery/django-redis-metrics/redis_metrics/tests/test_models.py/TestR.test_set_metric_with_category--crossover with--dataset/ETHPy150Open ros-infrastructure/bloom/bloom/git.py/tag_exists