예제 #1
0
 def test_p_wx_newline_implicit_linefeed_space_3(self):
     self.check_parse_spec(p_wx_newline((3 * ' ')))
예제 #2
0
 def test_p_wx_newline_implicit_linefeed__None(self):
     self.check_parse_spec(p_wx_newline(None))
예제 #3
0
 def test_p_wx_newline__exception__extra_linefeed(self):
     with self.assertRaises(ValueError):
         p_wx_newline('  ' + (common.LINEFEED * 2))
         assert False, "ValueError not raised !"
예제 #4
0
 def test_p_wx_newline_space_5(self):
     self.check_parse_spec(p_wx_newline((5 * ' ') + common.LINEFEED))
예제 #5
0
 def test_p_wx_newline__exception__lf_in_middle(self):
     with self.assertRaises(ValueError):
         p_wx_newline(' ' + (common.LINEFEED + ' '))
         assert False, "ValueError not raised !"