Extract the new token from headers.
diff --git a/openstack/identity/v3/tokens/results_test.go b/openstack/identity/v3/tokens/results_test.go
new file mode 100644
index 0000000..ca0d563
--- /dev/null
+++ b/openstack/identity/v3/tokens/results_test.go
@@ -0,0 +1,12 @@
+package tokens
+
+import "testing"
+
+func TestTokenID(t *testing.T) {
+ result := TokenCreateResult{tokenID: "1234"}
+
+ token, _ := result.TokenID()
+ if token != "1234" {
+ t.Errorf("Expected tokenID of 1234, got %s", token)
+ }
+}