'Allow users to change "translation source" settings'

def test_translation_source(self):

    self.client.login(username='admin', password='testpass')
    data = new_document_data()
    self.client.post(reverse('wiki.create'), data)
    parent = Document.objects.get(locale=data['locale'], slug=data['slug'])
    data.update({'title': 'Another    Test    Article', 'content': 'Yahoooo!', 'parent_id': parent.id})
    self.client.post(reverse('wiki.create'), data)
    child = Document.objects.get(locale=data['locale'], slug=data['slug'])
    url = reverse('wiki.edit', args=[child.slug])
    response = self.client.get(url)
    content = pq(response.content)
    ok_(content('li.metadata-choose-parent'))
    ok_((str(parent.id) in content.html()))
