equal
deleted
inserted
replaced
19 def test_1(self): |
19 def test_1(self): |
20 self.assertNotEquals(make_uid('xyz'), make_uid('abcd')) |
20 self.assertNotEquals(make_uid('xyz'), make_uid('abcd')) |
21 self.assertNotEquals(make_uid('xyz'), make_uid('xyz')) |
21 self.assertNotEquals(make_uid('xyz'), make_uid('xyz')) |
22 |
22 |
23 def test_2(self): |
23 def test_2(self): |
24 d = {} |
24 d = set() |
25 while len(d)<10000: |
25 while len(d)<10000: |
26 uid = make_uid('xyz') |
26 uid = make_uid('xyz') |
27 if d.has_key(uid): |
27 if uid in d: |
28 self.fail(len(d)) |
28 self.fail(len(d)) |
29 d[uid] = 1 |
29 d.add(uid) |
30 |
30 |
31 |
31 |
32 class UStringIOTC(TestCase): |
32 class UStringIOTC(TestCase): |
33 def test_boolean_value(self): |
33 def test_boolean_value(self): |
34 self.assert_(UStringIO()) |
34 self.assert_(UStringIO()) |