@@ -28,7 +28,7 @@ Python Koans is available through Murcurial on bitbucket:
28
28
29
29
It is also mirrored on github for Git users :
30
30
31
- http://github.com/gregmalcolm/python_koans
31
+ http://wiki. github.com/gregmalcolm/python_koans
32
32
33
33
Either site will allow you to download the source as a zip/gz/bz2.
34
34
64
64
65
65
In my case I'm using Python 3 with windows, so I fire up my command shell (cmd.exe) and run this:
66
66
67
- C:\>cd "c:\hg\python_koans\python 3_1 "
67
+ C:\>cd "c:\hg\python_koans\python 3 "
68
68
C:\hg\python_koans\python 3_1>python contemplate_koans.py
69
69
70
70
Thinking AboutAsserts
@@ -74,13 +74,13 @@ In my case I'm using Python 3 with windows, so I fire up my command shell (cmd.e
74
74
AssertionError: False is not True
75
75
76
76
Please meditate on the following code:
77
- File "C:\hg\python_koans\python 3_1 \koans\about_asserts.py", line 12, in test_
77
+ File "C:\hg\python_koans\python 3 \koans\about_asserts.py", line 12, in test_
78
78
assert_truth
79
79
self.assertTrue(False) # This should be true
80
80
81
81
82
82
Beautiful is better than ugly.
83
- C:\hg\python_koans\python 3_1 >
83
+ C:\hg\python_koans\python 3 >
84
84
85
85
Apparently a test failed:
86
86
@@ -99,7 +99,7 @@ Sooner or later you will likely encounter tests where you are not sure what the
99
99
100
100
This is where the Python Command Line can come in handy. in this case I can fire up the command line, recreate the scenario and run queries:
101
101
102
- C:\hg\python_koans\python 3_1 >python
102
+ C:\hg\python_koans\python 3 >python
103
103
Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on
104
104
win32
105
105
Type "help", "copyright", "credits" or "license" for more information.
0 commit comments