[Tutor] implementing rot 13 problems

2013-03-11 Thread RJ Ewing
I am trying to implement rot 13 and am having troubles. My code is as follows: class Rot_13(webapp2.RequestHandler): def write_form(self, user=""): self.response.out.write(rot_form % user) def get(self): self.write_form() def post(self): user = self.request.get("text") s = self.rot_text(user) pr

Re: [Tutor] implementing rot 13 problems

2013-03-12 Thread RJ Ewing
.join(ls) On Tue, Mar 12, 2013 at 4:11 AM, Karim wrote: > > What can be said after this detailed lesson...Bravo! > > > On 12/03/2013 11:58, Steven D'Aprano wrote: > >> On 12/03/13 16:57, RJ Ewing wrote: >> >>> I am trying to implement rot 13

[Tutor] urllib2 and tests

2013-05-04 Thread RJ Ewing
When I run the following test.py, I get the following error: RROR: test_fetch_file (__main__.TestFileFetcher) -- Traceback (most recent call last): File "test_filefetcher.py", line 12, in test_fetch_file fetched_file = filef

Re: [Tutor] urllib2 and tests

2013-05-04 Thread RJ Ewing
, May 4, 2013 at 9:08 PM, Steven D'Aprano wrote: > On 05/05/13 13:27, RJ Ewing wrote: > >> When I run the following test.py, I get the following error: >> > [...] > > If I run the fetch_file function outside of the test, it works fine. Any >> ideas? >&g