Esempio n. 1
0
 def test_hashable(self):
     for v in [False, 1, (2, ), (3, 4), 'four']:
         assert utils.hashable(v)
     for v in [[5, 6], ['seven', '8'], {9: 'ten'}]:
         assert not utils.hashable(v)
Esempio n. 2
0
 def test_hashable(self):
     for v in [False, 1, (2, ), (3, 4), 'four']:
         self.assertTrue(utils.hashable(v))
     for v in [[5, 6], ['seven', '8'], {9: 'ten'}]:
         self.assertFalse(utils.hashable(v))
Esempio n. 3
0
 def test_hashable(self):
     for v in [False, 1, (2, ), (3, 4), 'four']:
         self.assertTrue(utils.hashable(v))
     for v in [[5, 6], ['seven', '8'], {9: 'ten'}]:
         self.assertFalse(utils.hashable(v))
Esempio n. 4
0
 def test_hashable(self):
     for v in [False, 1, (2, ), (3, 4), "four"]:
         assert utils.hashable(v)
     for v in [[5, 6], ["seven", "8"], {9: "ten"}]:
         assert not utils.hashable(v)
Esempio n. 5
0
 def test_hashable(self):
     for v in [False, 1, (2, ), (3, 4), 'four']:
         assert utils.hashable(v)
     for v in [[5, 6], ['seven', '8'], {9: 'ten'}]:
         assert not utils.hashable(v)
Esempio n. 6
0
 def test_hashable(self):
     for v in [False, 1, (2,), (3, 4), "four"]:
         self.assertTrue(utils.hashable(v))
     for v in [[5, 6], ["seven", "8"], {9: "ten"}]:
         self.assertFalse(utils.hashable(v))