Lines Matching refs:cistr
2861 class cistr(str):
2872 if not isinstance(other, cistr):
2873 other = cistr(other)
2879 self.assertEqual(cistr('ABC'), 'abc')
2880 self.assertEqual('aBc', cistr('ABC'))
2881 cistr('ABC')), 'ABC')
2883 d = {cistr('one'): 1, cistr('two'): 2, cistr('tHree'): 3}
2884 self.assertEqual(d[cistr('one')], 1)
2885 self.assertEqual(d[cistr('tWo')], 2)
2886 self.assertEqual(d[cistr('THrEE')], 3)
2887 self.assertIn(cistr('ONe'), d)
2888 self.assertEqual(d.get(cistr('thrEE')), 3)