Exemple #1
0
 def get_assertion_dict(self, obj):
     return {
         'url': testutils.reverse('book_info', kwargs={'author': obj.author.id, 'id': obj.id}),
     }
Exemple #2
0
 def get_assertion_dict(self, obj):
     return {
         'url': testutils.reverse('genre_info', kwargs={'description': obj.pk}),
     }