예제 #1
0
 def test_unicode_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list(unicode('test')))
예제 #2
0
 def test_single_element_list(self):
     """Base case."""
     self.assertTrue(massedit.is_list(['test']))
예제 #3
0
 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"))