def test_last_modified_match_precedence(self):
        last_modified = datetime.datetime.now()
        def condition_last_modified(self, request, *args, **kwargs):
            return last_modified
        self.assertViewBehavior(
            {"condition_last_modified": condition_last_modified},
            headers={
                "HTTP_IF_MODIFIED_SINCE":
                    self.format_datetime(
                        last_modified + datetime.timedelta(hours=1))},
            status_code=405,
            headers_exclude="Last-Modified")
Test handling a scalar variable
dataset/ETHPy150Open skibblenybbles/django-daydreamer/daydreamer/tests/views/behaviors/http/tests.py/ConditionTestCase.test_last_modified_match_precedence--crossover with--dataset/ETHPy150Open Unidata/siphon/siphon/cdmr/tests/test_dataset.py/test_scalar