Index: trunk/Nebulous-Server/Changes
===================================================================
--- trunk/Nebulous-Server/Changes	(revision 5661)
+++ trunk/Nebulous-Server/Changes	(revision 5662)
@@ -2,4 +2,6 @@
 
 0.02
+    - add Nebulous::Client->open_create()
+    - change Nebulous::Client->create() to return just a filename
     - [nebclient] add nebOpenCreate()
     - [nebclient] change nebCreate() to return just a filename
Index: trunk/Nebulous-Server/t/11_client_create.t
===================================================================
--- trunk/Nebulous-Server/t/11_client_create.t	(revision 5661)
+++ trunk/Nebulous-Server/t/11_client_create.t	(revision 5662)
@@ -3,5 +3,5 @@
 # Copryight (C) 2004-2005  Joshua Hoblitt
 #
-# $Id: 11_client_create.t,v 1.4 2005-06-30 02:35:06 jhoblitt Exp $
+# $Id: 11_client_create.t,v 1.5 2005-12-03 02:26:59 jhoblitt Exp $
 
 use strict;
@@ -28,7 +28,7 @@
     );
 
-    my $fh = $neb->create( "foo" );
+    my $filename = $neb->create( "foo" );
 
-    is( ref $fh, 'GLOB', "good filehandle" );
+    ok( -e $filename, "good filename" );
 }
 
@@ -41,7 +41,7 @@
     );
 
-    my $fh = $neb->create( "foo", 0 );
+    my $filename = $neb->create( "foo", 0 );
 
-    is( ref $fh, 'GLOB', "good filehandle" );
+    ok( -e $filename, "good filename" );
 }
 
@@ -54,7 +54,7 @@
     );
 
-    my $fh = $neb->create( "foo", 0, "node01" );
+    my $filename = $neb->create( "foo", 0, "node01" );
 
-    is( ref $fh, 'GLOB', "good filehandle" );
+    ok( -e $filename, "good filename" );
 }
 
@@ -67,7 +67,7 @@
     );
 
-    my $fh = $neb->create( "foo", 0, "node01", "this is foo" );
+    my $filename = $neb->create( "foo", 0, "node01", "this is foo" );
 
-    is( ref $fh, 'GLOB', "good filehandle" );
+    ok( -e $filename, "good filename" );
 }
 
Index: trunk/Nebulous-Server/t/11_client_open_create.t
===================================================================
--- trunk/Nebulous-Server/t/11_client_open_create.t	(revision 5662)
+++ trunk/Nebulous-Server/t/11_client_open_create.t	(revision 5662)
@@ -0,0 +1,107 @@
+#!/usr/bin/perl
+
+# Copryight (C) 2004-2005  Joshua Hoblitt
+#
+# $Id: 11_client_open_create.t,v 1.1 2005-12-03 02:26:59 jhoblitt Exp $
+
+use strict;
+use warnings FATAL => qw( all );
+
+use Apache::Test qw( -withtestmore );
+
+plan tests => 7;
+
+use lib qw( ./t ./lib );
+
+use Nebulous::Client;
+use Nebulous::Util qw( :standard );
+use Test::Nebulous;
+
+my $hostport = Apache::Test->config->{ 'hostport' };
+
+Test::Nebulous->setup;
+
+{
+    # key
+    my $neb = Nebulous::Client->new(
+        proxy => "http://$hostport/nebulous",
+    );
+
+    my $fh = $neb->open_create( "foo" );
+
+    is( ref $fh, 'GLOB', "good filehandle" );
+}
+
+Test::Nebulous->setup;
+
+{
+    # key, class
+    my $neb = Nebulous::Client->new(
+        proxy => "http://$hostport/nebulous",
+    );
+
+    my $fh = $neb->open_create( "foo", 0 );
+
+    is( ref $fh, 'GLOB', "good filehandle" );
+}
+
+Test::Nebulous->setup;
+
+{
+    # key, class, volume
+    my $neb = Nebulous::Client->new(
+        proxy => "http://$hostport/nebulous",
+    );
+
+    my $fh = $neb->open_create( "foo", 0, "node01" );
+
+    is( ref $fh, 'GLOB', "good filehandle" );
+}
+
+Test::Nebulous->setup;
+
+{
+    # key, class, volume, comment
+    my $neb = Nebulous::Client->new(
+        proxy => "http://$hostport/nebulous",
+    );
+
+    my $fh = $neb->open_create( "foo", 0, "node01", "this is foo" );
+
+    is( ref $fh, 'GLOB', "good filehandle" );
+}
+
+Test::Nebulous->setup;
+
+{
+    my $neb = Nebulous::Client->new(
+        proxy => "http://$hostport/nebulous",
+    );
+
+    $neb->open_create( "foo" );
+    is( $neb->open_create( "foo" ), undef, "object already exists" );
+}
+
+Test::Nebulous->setup;
+
+eval {
+    my $neb = Nebulous::Client->new(
+        proxy => "http://$hostport/nebulous",
+    );
+
+    $neb->open_create();
+};
+like( $@, qr/2 - 4 were expected/, "no params" );
+
+Test::Nebulous->setup;
+
+eval {
+    my $neb = Nebulous::Client->new(
+        proxy => "http://$hostport/nebulous",
+    );
+
+    $neb->open_create( 1, 2, 3, 4, 5 );
+};
+like( $@, qr/2 - 4 were expected/, "too many params" );
+
+Test::Nebulous->cleanup;
