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