def test_p_ws_newline_space_5_lf(self): self.check_parse_spec(p_ws_newline((5 * ' ') + common.LINEFEED))
def test_p_ws_newline__space_3__implicit_linefeed(self): self.check_parse_spec(p_ws_newline((3 * ' ')))
def test_p_ws_newline__exception__space_0_lf(self): with self.assertRaises(ValueError): p_ws_newline((0 * ' ') + common.LINEFEED) assert False, "ValueError not raised !"
def test_p_ws_newline__exception__extra_linefeed(self): with self.assertRaises(ValueError): p_ws_newline(' ' + (common.LINEFEED * 2)) assert False, "ValueError not raised !"
def test_p_ws_newline__exception__lf_in_middle(self): with self.assertRaises(ValueError): p_ws_newline(' ' + (common.LINEFEED + ' ')) assert False, "ValueError not raised !"
def test_p_ws_newline__exception__empty_string(self): with self.assertRaises(ValueError): p_ws_newline('') assert False, "ValueError not raised !"
def test_p_ws_newline__exception__None(self): with self.assertRaises(ValueError): p_ws_newline(None) assert False, "ValueError not raised !"