예제 #1
0
파일: t_util.py 프로젝트: deverac/hpircomm
 def test_should_ignore_invalid_val(self):
     sert(util.parse_boolstr('not_a_bool')).to_equal('not_a_bool')
예제 #2
0
파일: t_util.py 프로젝트: deverac/hpircomm
 def test_should_parse_false(self):
     sert(util.parse_boolstr('false')).to_equal('false')
     sert(util.parse_boolstr('FALSE')).to_equal('false')
     sert(util.parse_boolstr('fAlSe')).to_equal('false')
예제 #3
0
파일: t_util.py 프로젝트: deverac/hpircomm
 def test_should_parse_0(self):
     sert(util.parse_boolstr('0')).to_equal('false')
예제 #4
0
파일: t_util.py 프로젝트: deverac/hpircomm
 def test_should_parse_true(self):
     sert(util.parse_boolstr('true')).to_equal('true')
     sert(util.parse_boolstr('TRUE')).to_equal('true')
     sert(util.parse_boolstr('tRuE')).to_equal('true')
예제 #5
0
파일: t_util.py 프로젝트: deverac/hpircomm
 def test_should_parse_1(self):
     sert(util.parse_boolstr('1')).to_equal('true')
예제 #6
0
파일: t_util.py 프로젝트: deverac/hpircomm
 def test_should_parse_t(self):
     sert(util.parse_boolstr('t')).to_equal('true')
     sert(util.parse_boolstr('T')).to_equal('true')