mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Fixed some type-os
This commit is contained in:
@@ -151,7 +151,7 @@ clearer construct is sufficient to express the function's intention.
|
||||
It is up to the programmer writing the function to determine which arguments
|
||||
are positional arguments and which are optional keyword arguments, and to
|
||||
decide whether to use the advanced techniques of arbitrary argument passing. If
|
||||
the advices above are followed wisely, it is possible and enjoyable to write
|
||||
the advice above is followed wisely, it is possible and enjoyable to write
|
||||
Python functions that are:
|
||||
|
||||
* easy to read (the name and arguments need no explanations)
|
||||
|
||||
@@ -290,7 +290,7 @@ always returns the same result (but only for the duration of the test).
|
||||
# get_search_results runs a search and iterates over the result
|
||||
self.assertEqual(len(myapp.get_search_results(q="fish")), 3)
|
||||
|
||||
Mock has many other ways you can configure it and control its behaviour.
|
||||
Mock has many other ways you can configure it and control its behavior.
|
||||
|
||||
`mock <http://www.voidspace.org.uk/python/mock/>`_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user