'check an int value of a template int throws exception'

def test_template_no_subs_key(self):

    template_data = u'%(foo)'
    response_data = 'bar'
    with testtools.ExpectedException(KeyError):
        self.ast._compare_result(expected=template_data, result=response_data, result_str='Test')
