'Upload a tarball to be imported.'

def upload_tarball(self, tarball_filename):

    asset_file_path = self.file_path(tarball_filename)
    self.browser.execute_script('$(".file-name-block").show();$(".file-input").show()')
    self.q(css='input[type="file"]')[0].send_keys(asset_file_path)
    self.q(css='input[type="file"]')[0].send_keys(asset_file_path)
    self._wait_for_button()
    click_css(self, '.submit-button', require_notification=False)
