Exemple #1
0
 def test_should_ignore_invalid_val(self):
     sert(util.parse_boolstr('not_a_bool')).to_equal('not_a_bool')
Exemple #2
0
 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')
Exemple #3
0
 def test_should_parse_0(self):
     sert(util.parse_boolstr('0')).to_equal('false')
Exemple #4
0
 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')
Exemple #5
0
 def test_should_parse_1(self):
     sert(util.parse_boolstr('1')).to_equal('true')
Exemple #6
0
 def test_should_parse_t(self):
     sert(util.parse_boolstr('t')).to_equal('true')
     sert(util.parse_boolstr('T')).to_equal('true')