def test_signature(self):
    'Check signature in different formats.'
    signature = 'Antoine Nguyen'
    self.user.parameters.set_value('signature', signature)
    self.user.save()
    response = self.client.get(reverse('modoboa_webmail:index'))
    self.assertEqual(response.status_code, 200)
    url = '{}?action=compose'.format(reverse('modoboa_webmail:index'))
    response = self.ajax_get(url)
    self.assertIn(signature, response['listing'])
Check signature in different formats.
def test_signature(self):
    
    signature = 'Antoine Nguyen'
    self.user.parameters.set_value('signature', signature)
    self.user.save()
    response = self.client.get(reverse('modoboa_webmail:index'))
    self.assertEqual(response.status_code, 200)
    url = '{}?action=compose'.format(reverse('modoboa_webmail:index'))
    response = self.ajax_get(url)
    self.assertIn(signature, response['listing'])