예제 #1
0
 def test_no_match(self):
     """Test REGEX_MULTI_SPACE no match"""
     s = "hello, world."
     matches = REGEX_MULTI_SPACE.findall(s)
     self.assertFalse(matches)
예제 #2
0
 def test_multiple_spaces_trailing_string(self):
     """Test REGEX_MULTI_SPACE trailing string"""
     s = "hello, world.   "
     matches = REGEX_MULTI_SPACE.findall(s)
     self.assertTrue(matches)
     self.assertEqual(matches, [' ' * 3])