def test_should_raise_error_if_inconsistent_properties(self):
        edge_spec = {
            'type': 'edge',
            'label': 'subscribed_to',
            'primary_key': 'undefined'
        }

        results = [self.spec_parser.parse_statement(edge_spec)]
        results += [self.spec_parser.parse_statement(self.property_spec)]
        with self.assertRaises(ValueError):
            self.spec_parser.validate(results)
Use this decorator on the dispatch method of a TemplateView subclass
dataset/ETHPy150Open StartTheShift/thunderdome/thunderdome/tests/test_spec.py/SpecParserTest.test_should_raise_error_if_inconsistent_properties--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/style/decorators.py/use_bootstrap3