vendredi 28 novembre 2014

Django Unitest Checking Value Of Template Variable


Vote count:

0




) Suppose I have {{registered}} variable in template. I wrote a piece of test:



def nice_test():
response = self.client.post(reverse('app:register;), {'username': 'dupa'}


and there I want to check value of variable registered in response. How to do it ?



asked 1 min ago







Django Unitest Checking Value Of Template Variable

Aucun commentaire:

Enregistrer un commentaire