コード例 #1
0
ファイル: tests.py プロジェクト: aliabbasjp/massedit
 def test_unicode_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list(unicode('test')))
コード例 #2
0
ファイル: tests.py プロジェクト: aliabbasjp/massedit
 def test_single_element_list(self):
     """Base case."""
     self.assertTrue(massedit.is_list(['test']))
コード例 #3
0
ファイル: tests.py プロジェクト: aliabbasjp/massedit
 def test_empty_list(self):
     """Empty lists should work too."""
     self.assertTrue(massedit.is_list([]))
コード例 #4
0
ファイル: tests.py プロジェクト: elmotec/massedit
 def test_unicode_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list(unicode('test')))
コード例 #5
0
ファイル: tests.py プロジェクト: elmotec/massedit
 def test_empty_list(self):
     """Empty lists should work too."""
     self.assertTrue(massedit.is_list([]))
コード例 #6
0
ファイル: tests.py プロジェクト: elmotec/massedit
 def test_single_element_list(self):
     """Base case."""
     self.assertTrue(massedit.is_list(['test']))
コード例 #7
0
ファイル: tests.py プロジェクト: elmotec/massedit
 def test_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list("test"))
コード例 #8
0
ファイル: tests.py プロジェクト: povilasb/massedit
 def test_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list("test"))