def test_get_node(self):
        """Test the get_node method."""
        user = self.gw.create_or_update_user(
            'username', visible_name='Visible Name', max_storage_bytes=1)
        sgw = SystemGateway()
        root = StorageObject.objects.get_root(user._user)
        node = root.make_file('TheName', mimetype='fakemime')
        new_node = sgw.get_node(node.id)
        self.assertEqual(node.id, new_node.id)
        self.assertEqual(node.parent_id, new_node.parent_id)
        self.assertEqual(node.name, new_node.name)
        self.assertEqual(node.path, new_node.path)
        self.assertEqual(node.content_hash, new_node.content_hash)
        # check that DoesNotExist is raised
        self.assertRaises(errors.DoesNotExist, sgw.get_node, uuid.uuid4())