多次提醒我,为变量取个合适的名字, so cute person:

Not a big deal, but try using variable names better than my_sa

每个参数一行好么 菇凉?

 def test_share_path_and_user_unicode(self):
self.assertEquals(user[1].decode('utf-8'), s_perms[ix]['trustee'][u'name'],
'user {0} not found in {1} positon of acl'.format(user[1], ix))
can you put each argument on its own line for readability and line up the continuation lines after the opening parenthesis?

这样写for ok?

fileslist = {file_.encode('utf-8') + fn_suffix for file_ in filenames}

不要在代码里用 hard-coded 好么? 用 constant

user_name = self.testOptions.s_test_users[13][1].decode('utf-8')

判断 是否为 unicode

isinstance(s, unicode)

判断是否为ascii, 返回true 为english, 返回false 为其他字符

ss = all(ord(c)<128 for c in s)

取列表后2位,赋值给2个变量

s_test_users[13][0] zoon

s_test_users[13][1] username

s_test_users[13][2] password

user_name, password = self.testOptions.s_test_users[13][1:]

一些缩写

LGTM looks good to me 朕知道了 代码已经过 review,可以合并

w.s. whitespace 我多了个无意义的空白行,我只是想让2个函数分开些,毕竟今天七夕,不想你们挨太近~

JFYR just for your reference

最新文章

  1. Leetcode Valid Number
  2. erlang日志功能。
  3. Spring并发访问的线程安全性问题
  4. 15个专业版响应式WordPress主题
  5. [CoreOS 转载] CoreOS实践指南(四):集群的指挥所Fleet
  6. TCP/IP 网络编程 (三)
  7. 备忘:文本编辑器(z.B. Sublime Text 2)策略,git策略
  8. Win7_Wifi热点
  9. noip模拟赛 软件software
  10. [未完成]WebService学习第一天学习笔记
  11. ftp上传java代码
  12. CCNP第四天 OSPF综合实验(1)
  13. [置顶] C++中RTTI机制剖析
  14. CUICatalog: Invalid asset name supplied: (null)
  15. 批处理改hosts
  16. linux下IPC通信
  17. PHP开发之路之一--WAMP的安装和配置
  18. 自定义chromium浏览器
  19. LeetCode-37.Sudok Solver
  20. PHP DDOS的UDP攻击,TCP攻击,和CC攻击的核心代码

热门文章

  1. sql函数的使用——系统函数
  2. 单颗GPU计算能力太多、太贵?阿里云发布云上首个轻量级GPU实例
  3. @codeforces - 932F@ Escape Through Leaf
  4. PHP程序连接Redis报read error on connection问题
  5. MySQL常用函数大全讲解
  6. MySQL按天,按周,按月,按时间段统计【转载】
  7. es6 默认参数、rest参数、扩展运算符
  8. HZOJ 礼物
  9. 让 AE 输出 MPEG
  10. uva 100 The 3n + 1 problem (RMQ)