'Make sure we can create a slug with only 3 characters.'

@mock.patch.object(Site.objects, 'get_current')
def test_slug_3_chars(self, get_current):

    get_current.return_value.domain = 'testserver'
    self.client.login(username='admin', password='testpass')
    data = new_document_data()
    data['slug'] = 'ask'
    response = self.client.post(reverse('wiki.new_document'), data)
    eq_(302, response.status_code)
    eq_('ask', Document.objects.order_by('-id')[0].slug)
