I didn't notice this before because I was reviewing pull request in GH instead of vim, but pyflakes doesn't care for the repeated redefinition of `mock_translate`.  I can't say I'm a huge fan, either.  Since these tests are essentially doing different things, would it be possible to break this one test case into three?  Any boilerplate setup could be abstracted into a separate method.