def test_mobile_persona_confirm_large(self): persona = Addon.objects.get(id=15679).persona s = mobile_persona_confirm(self._test_mobile_persona_ctx(), persona) doc = PyQuery(s) assert not doc('.persona-slider') assert doc('.preview') assert doc('.confirm-buttons .add') assert doc('.confirm-buttons .cancel') assert not doc('.more')
def test_mobile_persona_confirm_small(self): persona = Addon.objects.get(id=15679).persona s = mobile_persona_confirm(self._test_mobile_persona_ctx(), persona, size='small') doc = PyQuery(s) assert doc('.persona-slider') assert not doc('.persona-slider .preview') assert doc('.confirm-buttons .add') assert doc('.confirm-buttons .cancel') more = doc('.more') assert more eq_(more.attr('href'), persona.addon.get_url_path())