OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import unittest | 5 import unittest |
6 import collections | 6 import collections |
7 | 7 |
8 from infra_libs import infra_types | 8 from infra_libs import infra_types |
9 | 9 |
10 | 10 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 self.assertIsInstance(t, list) | 76 self.assertIsInstance(t, list) |
77 | 77 |
78 def testSet(self): | 78 def testSet(self): |
79 s = {1, 2, 'cat'} | 79 s = {1, 2, 'cat'} |
80 f = infra_types.freeze(s) | 80 f = infra_types.freeze(s) |
81 t = infra_types.thaw(f) | 81 t = infra_types.thaw(f) |
82 self.assertEqual(s, f) | 82 self.assertEqual(s, f) |
83 self.assertEqual(f, t) | 83 self.assertEqual(f, t) |
84 self.assertEqual(t, s) | 84 self.assertEqual(t, s) |
85 self.assertIsInstance(t, set) | 85 self.assertIsInstance(t, set) |
OLD | NEW |