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