def test_template_generator(self):
        # we first get both outputs as JSON strings
        template = self.expected_output
        generated = TemplateGenerator(json.loads(template)).to_json()

        # then we make them into a dict for comparison
        template = json.loads(template)
        generated = json.loads(generated)

        self.assertDictEqual(template, generated)
Emergency fix for https://github.com/toastdriven/django-haystack/issues/957
dataset/ETHPy150Open cloudtools/troposphere/tests/test_examples_template_generator.py/TestTemplateGenerator.test_template_generator--crossover with--dataset/ETHPy150Open inonit/drf-haystack/drf_haystack/filters.py/BaseHaystackGEOSpatialFilter.unit_to_meters