def test_name_exceeds_max_size(self):
        instance = TaggedModel()
        instance.tags = [stormbase.TagField(name=self._gen_random_string(1025),
                                            value='v1')]
        try:
            instance.save()
            self.assertTrue(False, 'Expected save to fail')
        except __HOLE__:
            pass
dataset/ETHPy150Open StackStorm/st2/st2common/tests/unit/test_tags.py/TestTags.test_name_exceeds_max_size