'Verify that path instances are usable as dictionary keys.'

def test_dictionaryKeys(self):

    f1 = self.path.child('file1')
    f1prime = self.path.child('file1')
    f2 = self.path.child('file2')
    dictoid = {}
    dictoid[f1] = 3
    dictoid[f1prime] = 4
    self.assertEqual(dictoid[f1], 4)
    self.assertEqual(list(dictoid.keys()), [f1])
    self.assertIs(list(dictoid.keys())[0], f1)
    self.assertIsNot(list(dictoid.keys())[0], f1prime)
    dictoid[f2] = 5
    self.assertEqual(dictoid[f2], 5)
    self.assertEqual(len(dictoid), 2)
