Re: A new syntax for writing tests

2010-08-05 Thread jfine
On 5 Aug, 14:52, Jean-Michel Pichavant wrote: > jfine wrote: > > On 5 Aug, 10:17, Jean-Michel Pichavant wrote: > > >> Jonathan Fine wrote: > > >>> Hi > > >>> I just discovered today anewsyntaxfor writing tests.  The basic > >>> idea is to write a function that contains some statements, and run it

Re: A new syntax for writing tests

2010-08-05 Thread Jean-Michel Pichavant
but it has to be better than the existing one in some situations. Chalk and cheese. My concern is to make tests easy to write, and that is something that unittest is, in my view, not good at. It is, as you say, a *test framework*. I've not written a test framework. I've fou

Re: A new syntax for writing tests

2010-08-05 Thread jfine
s can be handled in the > > runner, as can the test script raising an expected or unexpected > > exception. > > Hi, > > "The unittest module provides a rich set of tools for constructing and > running tests. This section demonstrates that a small subset of th

Re: A new syntax for writing tests

2010-08-05 Thread Jean-Michel Pichavant
Jonathan Fine wrote: Hi I just discovered today a new syntax for writing tests. The basic idea is to write a function that contains some statements, and run it via a decorator. I wonder if anyone had seen this pattern before, and how you feel about it. For myself, I quite like it. Let&#

A new syntax for writing tests

2010-08-04 Thread Jonathan Fine
Hi I just discovered today a new syntax for writing tests. The basic idea is to write a function that contains some statements, and run it via a decorator. I wonder if anyone had seen this pattern before, and how you feel about it. For myself, I quite like it. Let's suppose we wa