예제 #1
0
파일: test_config.py 프로젝트: yudading/vex
 def test_no_colon(self):
     assert config.extract_heading("foo") is None
예제 #2
0
파일: test_config.py 프로젝트: yudading/vex
 def test_trailing_space(self):
     assert config.extract_heading("foo: ") == "foo"
예제 #3
0
파일: test_config.py 프로젝트: yudading/vex
 def test_trailing_nonspace(self):
     assert config.extract_heading("foo: a") is None
예제 #4
0
파일: test_config.py 프로젝트: yudading/vex
 def test_normal(self):
     assert config.extract_heading("foo:") == "foo"