s/user/owner/ to avoid confusing StashOwner and auth.User.
authorMikko Värri <vmj@linuxbox.fi>
Thu, 16 Sep 2010 00:42:54 +0000 (03:42 +0300)
committerMikko Värri <vmj@linuxbox.fi>
Thu, 16 Sep 2010 00:42:54 +0000 (03:42 +0300)
recycloid_api/tests.py
recycloid_api/tests/Owner.json [new file with mode: 0644]
recycloid_api/tests/Owner.xml [new file with mode: 0644]
recycloid_api/tests/Stash.json
recycloid_api/tests/Stash.xml
recycloid_api/tests/User.json [deleted file]
recycloid_api/tests/User.xml [deleted file]

index 0d9fefa..06c8d13 100644 (file)
@@ -89,7 +89,7 @@ class ServerParserTestCase(ParserTestCase):
         self.json = JsonParser().parse(self.json)
         self.cmp(self.xml, self.json)
         return
-class UserParserTestCase(ParserTestCase):
+class OwnerParserTestCase(ParserTestCase):
     def test_parse(self):
         self.xml = XmlParser().parse(self.xml)
         self.json = JsonParser().parse(self.json)
diff --git a/recycloid_api/tests/Owner.json b/recycloid_api/tests/Owner.json
new file mode 100644 (file)
index 0000000..55a1ea6
--- /dev/null
@@ -0,0 +1,7 @@
+{ "owner":
+  { "@uuid": "12345678-1234-1234-1234-123456789012",
+    "@server": "12345678-1234-1234-1234-123456789012",
+    "description": "Something about me.",
+    "image": "https://api.recycloid.org/"
+  }
+}
diff --git a/recycloid_api/tests/Owner.xml b/recycloid_api/tests/Owner.xml
new file mode 100644 (file)
index 0000000..15d8d74
--- /dev/null
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<owner uuid="12345678-1234-1234-1234-123456789012" server="12345678-1234-1234-1234-123456789012">
+  <description>Something about me.</description>
+  <image>https://api.recycloid.org/</image>
+</owner>
index 93d45f7..4d8ed9c 100644 (file)
@@ -1,7 +1,7 @@
 { "stash":
   { "@uuid": "12345678-1234-1234-1234-123456789012",
     "@server": "12345678-1234-1234-1234-123456789012",
-    "@user": "12345678-1234-1234-1234-123456789012",
+    "@owner": "12345678-1234-1234-1234-123456789012",
     "title": "Something about me.",
     "description": "Something about me.",
     "image": "https://api.recycloid.org/",
index 414bc92..385931d 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <stash uuid="12345678-1234-1234-1234-123456789012"
        server="12345678-1234-1234-1234-123456789012"
-       user="12345678-1234-1234-1234-123456789012">
+       owner="12345678-1234-1234-1234-123456789012">
   <title>Something about me.</title>
   <description>Something about me.</description>
   <image>https://api.recycloid.org/</image>
diff --git a/recycloid_api/tests/User.json b/recycloid_api/tests/User.json
deleted file mode 100644 (file)
index 8d82f7b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-{ "user":
-  { "@uuid": "12345678-1234-1234-1234-123456789012",
-    "@server": "12345678-1234-1234-1234-123456789012",
-    "description": "Something about me.",
-    "image": "https://api.recycloid.org/"
-  }
-}
diff --git a/recycloid_api/tests/User.xml b/recycloid_api/tests/User.xml
deleted file mode 100644 (file)
index 0728f22..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<user uuid="12345678-1234-1234-1234-123456789012" server="12345678-1234-1234-1234-123456789012">
-  <description>Something about me.</description>
-  <image>https://api.recycloid.org/</image>
-</user>