c259dea73a80dbc62c007de69a4597a6e82a916c,django/comicsite/tests.py,UploadTest,_upload_test_file,#UploadTest#Any#Any#,378
Before Change
fakefile.write("some uploaded content" + testfilename)
request.FILES["file"] = SimpleUploadedFile(name=testfilename,
content=fakefile.read())
request.method = "POST"
After Change
% (testfilename, user.username, project.short_name))
// see if there are any errors rendered in the reponse
errors = re.search("<ul class="errorlist">(.*)</ul>",
response.content,
re.IGNORECASE)
if errors:
self.assertFalse(errors,"Error uploading file "%s":\n %s"
%(testfilename, errors.group(1))
)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: comic/grand-challenge.org
Commit Name: c259dea73a80dbc62c007de69a4597a6e82a916c
Time: 2013-07-12
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/tests.py
Class Name: UploadTest
Method Name: _upload_test_file
Project Name: estnltk/estnltk
Commit Name: f1106d2c7e4580a1c2947fa8dd181aec1babf517
Time: 2015-09-05
Author: Annett.Saarik@hotmail.com
File Name: estnltk/database/database.py
Class Name: Database
Method Name: keyword_documents
Project Name: comic/grand-challenge.org
Commit Name: 8d715ce57c9c358ce198ca98d8a87788a7d2c6ed
Time: 2013-07-12
Author: w.s.kerkstra@gmail.com
File Name: django/comicsite/tests.py
Class Name: UploadTest
Method Name: _upload_test_file