Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-09 Thread Danny Yoo
By the way, there's a nice book by Kent Beck called "Test Driven Development by Example" that might be helpful to look at: http://en.wikipedia.org/wiki/Test-Driven_Development_by_Example ___ Tutor maillist - Tutor@python.org To unsubscribe or chang

Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-09 Thread Amit Saha
On Sun, Dec 8, 2013 at 8:22 PM, Rafael Knuth wrote: > Hey there, > > I struggle to understand what unit testing specifically means in > practice and how to actually write unit tests for my code (my gut is > telling me that it's a fairly important concept to understand). > > Over the last few days

Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-08 Thread Alan Gauld
On 08/12/13 10:22, Rafael Knuth wrote: My understanding of unit testing is that I have to embed my code into a test and then I have to define conditions under which my code is supposed to fail and pass. Is that assumption correct? That's correct for any kind of unit testing, not just using the

Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-08 Thread Steven D'Aprano
On Sun, Dec 08, 2013 at 11:22:37AM +0100, Rafael Knuth wrote: > Hey there, > > I struggle to understand what unit testing specifically means in > practice and how to actually write unit tests for my code (my gut is > telling me that it's a fairly important concept to understand). In practice, uni

Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-08 Thread Mark Lawrence
On 08/12/2013 10:22, Rafael Knuth wrote: Hey there, I struggle to understand what unit testing specifically means in practice and how to actually write unit tests for my code (my gut is telling me that it's a fairly important concept to understand). Over the last few days I learned how to write

Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-08 Thread spir
On 12/08/2013 11:22 AM, Rafael Knuth wrote: Hey there, I struggle to understand what unit testing specifically means in practice and how to actually write unit tests for my code (my gut is telling me that it's a fairly important concept to understand). [...] Hello Rafael, This post is quite l

Re: [Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-08 Thread Amit Saha
On Sun, Dec 8, 2013 at 8:22 PM, Rafael Knuth wrote: > Hey there, > > I struggle to understand what unit testing specifically means in > practice and how to actually write unit tests for my code (my gut is > telling me that it's a fairly important concept to understand). Your gut feeling is right.

[Tutor] Unit testing in Python (3.3.0) for beginners

2013-12-08 Thread Rafael Knuth
Hey there, I struggle to understand what unit testing specifically means in practice and how to actually write unit tests for my code (my gut is telling me that it's a fairly important concept to understand). Over the last few days I learned how to write and work with classes, I learned quite a l