def test_returned_variable(self):
        """Assure get_variables returns variables unique to the context."""
        context = self._get_context({})
        with context_context_manager(context):
            variables = get_variables(context)
            self.assertTrue('a' not in variables)

        context = self._get_context({'a': 3})
        with context_context_manager(context):
            variables = get_variables(context)
            self.assertTrue('a' in variables)
dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/test_utils.py/GetVariablesTestCase.test_returned_variable/original