def test_new_folder(self):
    'Test folder creation.'
    url = reverse('modoboa_webmail:folder_add')
    response = self.client.get(url)
    self.assertContains(response, 'Create a new folder')
    response = self.ajax_post(url, {'name': 'Test'})
    self.assertIn('newmb', response)
Test folder creation.
def test_new_folder(self):
    
    url = reverse('modoboa_webmail:folder_add')
    response = self.client.get(url)
    self.assertContains(response, 'Create a new folder')
    response = self.ajax_post(url, {'name': 'Test'})
    self.assertIn('newmb', response)