On 11 April 2013 14:42, Lachlan Musicman <data...@gmail.com> wrote:
> On 11 April 2013 14:23, Mike Dewhirst <mi...@dewhirst.com.au> wrote:
>> On 11/04/2013 2:02pm, Lachlan Musicman wrote:
>>
>> Inside your test class before writing tests you can have ...
>>
>>     def setUp(self):
>>
>>         jack = MaleAccountFactory()
>>         jill = FemaleAccountFactory()
>>
>>     def tearDown(self):
>>         ( here delete jack and jill )
>>
>>
>> If you have those two methods named exactly as above, setUp() will be called
>> immediately before every test and tearDown() after every test.
>
> Thanks for the response. I've added these two methods as you
> suggested, and now I'm getting
>
> Ran 0 tests in 0.000s
>
> ?


My fault, ignore.

cheers
L.
--
The new creativity is pointing, not making. Likewise, in the future,
the best writers will be the best information managers.

http://www.theawl.com/2013/02/an-interview-with-avant-garde-poet-kenneth-goldsmith

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to