def METHOD_NAME(self, repo, fname=None):
    if isinstance(repo, str):
        repo = _Repo(repo)
    fname = fname or ('文件 %s.txt' % randstring())
    furl = repo.get_filepath_url('/' + fname)
    data = {'operation': 'create'}
    res = self.post(furl, data=data, expected=201)
    self.assertEqual(res.text, '"success"')
    return fname, furl