'Revision.based_on should be the rev that was current when the
Translate button was clicked, even if other revisions happen while the
user is editing.'

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

    get_current.return_value.domain = 'testserver'
    _test_form_maintains_based_on_rev(self.client, self.d, 'wiki.translate', _translation_data(), locale='es')
