def test_delete_folder(self):
    'Test folder removal.'
    url = reverse('modoboa_webmail:folder_delete')
    self.ajax_get(url, status=400)
    url = '{}?name=Test'.format(url)
    session = self.client.session
    session['webmail_navparams'] = {'inbox': 'Test'}
    session.save()
    self.ajax_get(url)
Test folder removal.
def test_delete_folder(self):
    
    url = reverse('modoboa_webmail:folder_delete')
    self.ajax_get(url, status=400)
    url = '{}?name=Test'.format(url)
    session = self.client.session
    session['webmail_navparams'] = {'inbox': 'Test'}
    session.save()
    self.ajax_get(url)