def test_regex_suggest(self):
        ku_tag = Tag.objects.create(name='ku')
        TagRegex.objects.create(
            tag=ku_tag,
            name='Find University of Kansas',
            regex='University\s+of\s+Kansas'
        )

        suggested_tags = suggest_tags('I was once a student at the University of Kansas')

        self.assertTrue(ku_tag in suggested_tags)
dataset/ETHPy150Open frankwiles/django-taggit-suggest/taggit_suggest/tests.py/SuggestCase.test_regex_suggest/original