Commits

Richard Jones  committed 735fbcd

correct response

  • Participants
  • Parent commits fd837f2

Comments (0)

Files changed (2)

File oauth_test.py

     ACCESS_SECRET = 'vSXBEWk5kn6wvVGivILPyBmtRitDvJq0cVcmBDk57eX2XCENvp2da3ou7v09TxrL'
     access_token = oauth.OAuthToken(ACCESS_KEY, ACCESS_SECRET)
     example_test(access_token)
-    example_release(access_token, name='spam', version='2.0')
+    example_release(access_token, name='spam', version='3.0', summary='Spam via OAuth',
+        description='This package was registered **VIA OAUTH**!')
 
         message = self.store.store_package(name, version, data)
         self.store.changed()
 
-        return 'OK'
+        self.write_plain('OK')
 
     def oauth_upload(self):
         '''Upload a file for a package release.