示例#1
0
 def test_unicode_is_str_type(self):
     self.assertTrue(util.is_str_type(unicode("s")))
示例#2
0
 def test_numeric_unicode_is_str_type(self):
     self.assertTrue(util.is_str_type(unicode("5")))
示例#3
0
 def test_str_is_str_type(self):
     self.assertTrue(util.is_str_type("s"))
示例#4
0
 def test_non_str_is_not_str_type(self):
     self.assertFalse(util.is_str_type(5))
示例#5
0
文件: test_util.py 项目: actmd/zoomus
 def test_numeric_unicode_is_str_type(self):
     self.assertTrue(util.is_str_type(unicode('5')))
示例#6
0
文件: test_util.py 项目: actmd/zoomus
 def test_unicode_is_str_type(self):
     self.assertTrue(util.is_str_type(unicode('s')))
示例#7
0
文件: test_util.py 项目: actmd/zoomus
 def test_non_str_is_not_str_type(self):
     self.assertFalse(util.is_str_type(5))
示例#8
0
文件: test_util.py 项目: actmd/zoomus
 def test_str_is_str_type(self):
     self.assertTrue(util.is_str_type('s'))
示例#9
0
 def test_numeric_str_is_str_type(self):
     self.assertTrue(util.is_str_type('5'))