samedi 4 juin 2016

Django Testing Assert Failing Syntax Error

First is it self.assertXXX or assertXXX in the methods of your TestCase class?

Second this line keeps throwing syntax error in the middle of the message.

assertEqual(last_upload.file_upload.name, filename, "The uploaded file's model doesn't have the name set correctly")

tried it without the message, still a syntax error.

Aucun commentaire:

Enregistrer un commentaire