'upload_template() shouldn\'t munge final remote filename'

@server(responses={'test    -d    "$(echo    /)"': ''})
def test_upload_template_uses_correct_remote_filename(self):

    template = self.mkfile('template.txt', 'text')
    with hide('everything'):
        upload_template(template, '/')
        assert self.exists_remotely('/template.txt')
