<s> """<STR_LIT>""" <EOL> from django . template import Template , Context <EOL> from mock import patch <EOL> from tests import case <EOL> class FilterUrlTest ( case . TestCase ) : <EOL> """<STR_LIT>""" <EOL> @ patch ( "<STR_LIT>" ) <EOL> def test_pass_through ( self , mock_filter_url ) : <EOL> """<STR_LIT>""" <EOL> t = Template ( "<STR_LIT>" ) <EOL> product = object ( ) <EOL> mock_filter_url . return_value = "<STR_LIT>" <EOL> res = t . render ( Context ( { "<STR_LIT>" : product } ) ) <EOL> self . assertEqual ( res , "<STR_LIT>" ) <EOL> mock_filter_url . assert_called_with ( "<STR_LIT>" , product ) </s>
