def test_breadcrumb():
 c = LocalizingClient()
 response = c.get(reverse('search'))
 doc = pq(response.content)
 href = doc('.breadcrumbs a')[0]
 eq_('/', href.attrib['href'][0])

def test_breadcrumb ( ) : c = LocalizingClient ( ) response = c . get ( reverse ( 'search' ) ) doc = pq ( response . content ) href = doc ( '.breadcrumbs a' ) [ 0 ] eq_ ( '/' , href . attrib [ 'href' ] [ 0 ] )
make sure breadcrumb links start with / .