本文整理汇总了Python中mmodules.web.parse函数的典型用法代码示例。如果您正苦于以下问题:Python parse函数的具体用法?Python parse怎么用?Python parse使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parse函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_117_command_h
def test_117_command_h(self):
self.assertEqual(web.parse('h: text'), ('A', '', 'h: text'))
示例2: test_026_command_p
def test_026_command_p(self):
self.assertEqual(web.parse('i3p1 '), ('P', ('3','1'), ''))
示例3: test_033_command_a
def test_033_command_a(self):
self.assertEqual(web.parse('a3: text'), ('A', '3', 'text'))
示例4: test_179_command_help
def test_179_command_help(self):
self.assertEqual(web.parse('HELP'), ('H', '', ''))
示例5: test_020_command_m
def test_020_command_m(self):
self.assertEqual(web.parse('i3m1: '), ('SHORT', '', 'i3m1:'))
示例6: test_168_command_c
def test_168_command_c(self):
self.assertEqual(web.parse('i3m1#text'), ('SHORT', '', 'i3m1#text'))
示例7: test_177_command_help
def test_177_command_help(self):
self.assertEqual(web.parse('help: text'), ('A', '', 'help: text'))
示例8: test_137_command_u
def test_137_command_u(self):
self.assertEqual(web.parse('u: text'), ('A', '', 'u: text'))
示例9: test_016_command_m
def test_016_command_m(self):
self.assertEqual(web.parse('i3m text'), ('A', '', 'i3m text'))
示例10: test_128_command_s
def test_128_command_s(self):
self.assertEqual(web.parse('stext'), ('SHORT', '', 'stext'))
示例11: test_134_command_u
def test_134_command_u(self):
self.assertEqual(web.parse('u: '), ('U', '', ''))
示例12: test_127_command_s
def test_127_command_s(self):
self.assertEqual(web.parse('s: text'), ('A', '', 's: text'))
示例13: test_124_command_s
def test_124_command_s(self):
self.assertEqual(web.parse('s: '), ('S', '', ''))
示例14: test_118_command_h
def test_118_command_h(self):
self.assertEqual(web.parse('htext'), ('SHORT', '', 'htext'))
示例15: test_164_command_c
def test_164_command_c(self):
self.assertEqual(web.parse('i3m1#: '), ('C', ('3','1'), ''))