#5419: Add a model fuzz testing method to the test framework -----------------------+---------------------------------------------------- Reporter: adrian | Owner: nobody Status: new | Component: Unit test system Version: SVN | Keywords: Stage: Unreviewed | Has_patch: 0 -----------------------+---------------------------------------------------- [http://en.wikipedia.org/wiki/Fuzz_testing Fuzz testing] is when random, crazy data is thrown at some code to make sure it can handle crazy input. The Django test system should provide an {{{assertModelPassesFuzzTest()}}} method (or pick a better name), which would take a model class as its argument and do the following: * Insert a bunch of random data, including non-ASCII Unicode data, into a model instance and make sure the instance's {{{__unicode__()}}} doesn't throw {{{UnicodeEncodeError}}} or {{{UnicodeDecodeError}}}. * Call every custom model method that doesn't have {{{alters_data=True}}} (or maybe include those, too?) and make sure nothing silly happens. (In this case, it will be hard to determine what "silly" means, without some hints from the model method as to its expected output.)
-- Ticket URL: <http://code.djangoproject.com/ticket/5419> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
