def test_no_match(self): """Test REGEX_MULTI_SPACE no match""" s = "hello, world." matches = REGEX_MULTI_SPACE.findall(s) self.assertFalse(matches)
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])