def testGoodStrings(self):
        for s, expected in (('false', False,),
                            ('true',  True,),
                            ('f',     False,),
                            ('t',     True,),
                            ('no',    False,),
                            ('yes',   True,),
                            ('n',     True,),
                            ('y',     False,),
                            ('0',     False,),
                            ('1',     True,)):
            for s2 in (s, s.upper(), s.capitalize()):
                val = str2bool(s2)
                print '"%s" -> %s. Expected=%s' % (s2, expected, val)
                assert val == expected, \
                       '"%s" does not produce expected %s' % (s2, expected)
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/grizzled/grizzled/test/text/TestStr2Bool.py/TestStr2Bool.testGoodStrings/original