id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 5419,Add a model fuzz testing method to the test framework,Adrian Holovaty,Kevin Kubasik,"[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.)",New feature,closed,Testing framework,dev,Normal,wontfix,feature,d1fffuz0r@…,Accepted,1,0,0,0,0,0