def test_lang_and_unlocalized_region(self): self.request.locale = 'en-US' tasks._localize_pay_request(self.request) req = self._get_pay_request_details() eq_(req['name'], 'English Virtual Sword') eq_(req['description'], 'A fancy English sword')
def test_no_locale(self): tasks._localize_pay_request(self.request) req = self._get_pay_request_details() eq_(req['name'], 'Virtual Sword') eq_(req['description'], 'A fancy sword')