Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

src/a/r/armstrong.base-HEAD/armstrong/base/tests/templatetags/text_helpers.py   armstrong.base(Download)
    def test_data_returns_is_marked_as_safe(self):
        text = "This is some text"
        request, context = generate_random_request_and_context(text)
 
        node = text_helpers.HighlightedSearchTermNode("text")
    def test_gracefully_returns_when_lacking_request_object(self):
        text = "This is some text"
        node = text_helpers.HighlightedSearchTermNode("text")
        result = node.render({"text": text})
        self.assertEqual(text, result)
 
        text = "This is some text"
        node = text_helpers.HighlightedSearchTermNode("text")
 
        with fudge.patched_context(text_helpers, 'settings', settings):
    def test_works_with_referrers_with_no_q_get_param(self):
        text = "This is some text"
        request, context = generate_random_request_and_context(
                "", url_template="http://localhost/%s", match="")
        node = text_helpers.HighlightedSearchTermNode("text")
    def test_replaces_words_with_highlighted_word(self):
        text = "This is some text"
        request, context = generate_random_request_and_context(text)
 
        node = text_helpers.HighlightedSearchTermNode("text")