'Make sure dir attr is set to \'rtl\' for RTL language.'

def test_dir_rtl(self):

    translation.activate('he')
    self.request.LANGUAGE_CODE = 'he'
    html = render_to_string(self.template, request=self.request)
    eq_('rtl', pq(html)('html').attr['dir'])
    translation.deactivate()
