Example #1
0
 def test_unicode_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list(unicode('test')))
Example #2
0
 def test_single_element_list(self):
     """Base case."""
     self.assertTrue(massedit.is_list(['test']))
Example #3
0
 def test_empty_list(self):
     """Empty lists should work too."""
     self.assertTrue(massedit.is_list([]))
Example #4
0
 def test_unicode_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list(unicode('test')))
Example #5
0
 def test_empty_list(self):
     """Empty lists should work too."""
     self.assertTrue(massedit.is_list([]))
Example #6
0
 def test_single_element_list(self):
     """Base case."""
     self.assertTrue(massedit.is_list(['test']))
Example #7
0
 def test_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list("test"))
Example #8
0
 def test_string_not_ok(self):
     """String should not be confused with lists"""
     self.assertFalse(massedit.is_list("test"))