assertRaises() help

Cameron Simpson cs at zip.com.au
Wed May 27 20:21:05 EDT 2015


On 27May2015 17:13, Vincent Davis <vincent at vincentdavis.net> wrote:
>On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson <cs at zip.com.au> wrote:
>> First, test your test by hand running:
>>  to_datetime('2015-02-29', coerce=False)
>> _Does_ it raise ValueError?
>
>​Well that was not expected.​ Thanks

See? If you'd just believed your unit test... :-)

Welcome to test driven development!

Cheers,
Cameron Simpson <cs at zip.com.au>

Acceptance Testing: Dropping your mods straight into the production
                    environment to see if the users will accept them.



More information about the Python-list mailing list