Programming Books C Java PHP Python Learn more Browse Programming Books
Python Testing: Beginner's Guide and over one million other books are available for Amazon Kindle. Learn more
  • List Price: $39.99
  • Save: $2.00 (5%)
In Stock.
Ships from and sold by
Gift-wrap available.
Python Testing: Beginner'... has been added to your Cart
Condition: Used: Good
Comment: Fast shipping from Amazon! Qualifies for Prime Shipping and FREE standard shipping for orders over $35. Overnight, 2 day and International shipping available! Excellent Customer Service.. May not include supplements such as CD, access code or DVD.
Access codes and supplements are not guaranteed with used items.
Sell yours for a Gift Card
We'll buy it for $2.00
Learn More
Trade in now
Have one to sell? Sell on Amazon
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See this image

Python Testing: Beginner's Guide Paperback – February 19, 2010

ISBN-13: 978-1847198846 ISBN-10: 1847198848

Buy New
Price: $37.99
21 New from $33.99 9 Used from $29.06
Amazon Price New from Used from
"Please retry"
"Please retry"
$33.99 $29.06
Unknown Binding
"Please retry"
Free Two-Day Shipping for College Students with Amazon Student Free%20Two-Day%20Shipping%20for%20College%20Students%20with%20Amazon%20Student

Frequently Bought Together

Python Testing: Beginner's Guide + Python Testing Cookbook + Testing Python: Applying Unit Testing, TDD, BDD and Acceptance Testing
Price for all three: $109.68

Buy the selected items together
If you buy a new print edition of this book (or purchased one in the past), you can buy the Kindle edition for only $2.99 (Save 80%). Print edition purchase must be sold by Amazon. Learn more.

Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now

Product Details

  • Paperback: 256 pages
  • Publisher: Packt Publishing (February 19, 2010)
  • Language: English
  • ISBN-10: 1847198848
  • ISBN-13: 978-1847198846
  • Product Dimensions: 7.5 x 0.6 x 9.2 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.5 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon Best Sellers Rank: #738,015 in Books (See Top 100 in Books)

Editorial Reviews

About the Author

Daniel Arbuckle

Daniel Arbuckle holds a Ph.D. in Computer Science from the University of Southern California. While at USC, he performed original research in the Interaction Lab (part of the Center for Robotics and Embedded Systems) and the Laboratory for Molecular Robotics (now part of the Nanotechnology Research Laboratory). His work has been published in peer-reviewed journals and in the proceedings of international conferences.

Customer Reviews

3.5 out of 5 stars
Share your thoughts with other customers

Most Helpful Customer Reviews

21 of 21 people found the following review helpful By Drew A. Verlee on May 31, 2012
Format: Paperback Verified Purchase
This review is more of a warning, The kindle version is unreadable because it pushes all the code to the left.

for x in range(1):
for y in range(2):
print x
print y
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
5 of 5 people found the following review helpful By Paulo Nuin on March 9, 2010
Format: Paperback
I received this book for review from Packt Publishing due to the fact that I have a blog about Python and Bioinformatics. Test driven development preaches that most of the code (ideally all of it) should be wrapped in test functions that will show if your code is producing the right output or not. And this book gives a very nice introduction to the topic if you are using Python as your language of choice. PTBG is a very well written book, with detailed explanations of the major Python tools for test driven development: doctests, unittest, nose, among others.

The book gives short introduction about the topic, but jumps right into the action in the first chapters. One thing that I liked is that the book does not have a introduction to Python section, like many other books that are supposed to be about an specific topic, so you don't waste space and time. Also, PTBG is unique among Python-related books, as there are not many published options about this subject. Of course there's ample material online about test driven development, but if you need a good (introductory) reference book about it, this is the book to buy.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
3 of 3 people found the following review helpful By R. Bourke on August 19, 2011
Format: Paperback
From the perspective of a beginning python developer, having inherited a system that needs a lot more testing, spending the 2-3 days working through this book was a good investment of time. Python has this bewildering range of frameworks, and even the best non-testing framework documentation only give an overview of the process of building the QA suite from the ground up.

It covers the following frameworks, each in its own chapter.

-Doctest (the most simple and basic python tester, part of standard library)
-Unittest (more advanced testing framework easier to automate
-Mocker (using mock objects as stubs to isolate code that isn't by its nature isolated. This one was a complete revelation to me and worth the price of the book alone)
-Nose (test automation suite - a definite time-saver).

Plus several chapters that are a range of reused examples that gradually works up the testing stack from unit testing through integration testing to system testing, in bite-sized chunks and with a - to me - agreeably informal and motivating style.

It isn't perfect. Two minuses:
1. Python is a very dynamic area, and it is python 2.6 centric. 2.7 and 3.1 are already out there, and understandably not covered.
2. Check for the source code to avoid massive frustration. I was reading it electronically so cut-and-pasted, but the e-publisher had done some automatic formatting to remove leading blanks, insert lines for readability. Python, of course, needs those leading blanks. And doctest, too, treats blank lines as significant.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
5 of 6 people found the following review helpful By Juho Vepsäläinen on February 20, 2010
Format: Paperback
Disclaimer: I received a review copy of this book from the publisher, Packt Publishing.

I have been actively using test-driven development methodology for a few years already so I am probably not exactly in the intended target market of the book. I still managed to pick a few valuable nuggets of information from it, though. As stated in the book description, it is essential that you have already basic knowledge of Python. It's definitely needed.

The book uses extremely practical approach in the expense of theory. It walks the reader through various coding tasks with clear prose. There were times when I felt that the examples were a little bit overwhelming. This should not be much of a problem as long as you are prepared to spend the time on them. In addition to the walkthroughs the book contains some reference information and useful quizzes that can be used to check your knowledge.

It would have been useful to have some background information on testing (ie. history, taxonomy of tools and approaches) as appendices. The book covers the basic testing methodology well but I would have appreciated at least some discussion on advanced approaches (ie. BDD, ATDD, refactoring, fuzz testing, etc.).

All things considered if you decide to pick up the book, it might be a good idea to look into additional material focusing on theory of testing, testing patterns and agile methodologies for enhanced understanding of the subject matter.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
2 of 2 people found the following review helpful By Randall Degges on July 21, 2010
Format: Paperback Verified Purchase
First of all, let me say that this review will be rather long and comprehensive, so if you want a short summary: **Buy this book if you are a python programmer, who is interested in best-practices and test driven development.**

I'm a professional programmer, and I use python as well as Django (one of the large python web frameworks) at work and for fun. I picked up this book immediately when I saw it on amazon because I've read tons of documents, articles, and books on test driven development, but have never had the pleasure of reading through a python-specific book for testing.

**Target Audience**

This book is written for developers who:

- Are comfortable with python programming.
- Are familiar with the concept of testing.
- Are interested in using industry standard best practices for development.

If you meet these requirements, read on.


The author, Daniel Arbuckle, takes a practical approach to testing. He starts with the basics, by converting human written program specifications into simple python doctests.

Then he discusses unit tests, mock objects, and continuous building tools.

Throughout the book, you will learn about each form of test, why it is useful, how it should be used and why. The author walks through several programs from start to finish, clearly breaking them down piece by piece, and explaining how they work, and why.

There is no shortage of examples.

**Good Parts**

I absolutely LOVED the writing style used throughout the book. It is brisk, conversational, and you can tell that the author has a lot of passion for the topic.

There are a lot of great examples used throughout the book. They are all clearly explained.
Read more ›
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

What Other Items Do Customers Buy After Viewing This Item?