def test_get_node(self):
        """Test get_node method."""
        # make sure it returns the root node when special 'root' is used:
        root_node = self.vgw.get_node('root')
        self.assertEqual(root_node.id, self.vgw.get_root().id)
        node = self.vgw.get_node(self.file.id, with_content=True)
        self.assertEqual(node.id, self.file.id)
        self.assertEqual(node.content_hash, self.file.content_hash)
        self.assertEqual(node.mimetype, self.file.mimetype)
        self.assertRaises(errors.DoesNotExist, self.vgw.get_node, uuid.uuid4())
        self.assertRaises(errors.HashMismatch, self.vgw.get_node, self.file.id,
                          verify_hash='fake hash')