Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBen Tremblay <benoit.tremblay1@gmail.com>2009-11-05 19:53:51 (GMT)
committer Ben Tremblay <benoit.tremblay1@gmail.com>2009-11-05 19:53:51 (GMT)
commit4b292b46acb6ecf08fbfe980cefaaeba51199aab (patch)
tree1856aeb8f359c7d540c83e40471fd092bbda70f2 /tests
parentd50c3cd98d6e99c7311286559136dc1a775a326d (diff)
publish now returns the newly published tutorial id
Diffstat (limited to 'tests')
-rw-r--r--tests/storetests.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/storetests.py b/tests/storetests.py
index 1752fe6..f3d813c 100644
--- a/tests/storetests.py
+++ b/tests/storetests.py
@@ -15,6 +15,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import unittest
+import uuid
from tests.utils import skip, catch_unimplemented
import random
@@ -99,13 +100,14 @@ class StoreProxyLoginTest(unittest.TestCase):
'name': 'newtut',
'summary': 'This is a tutorial',
'filename': 'test.xml',
+ 'guid': str(uuid.uuid1()),
'homepage': 'http://google.com',
'version': '1',
'cat1': '17',
'cat2': '18',
'cat3': ''
}
- assert self.store.publish('This should be a real tutorial...', tutorial_info)
+ assert self.store.publish('This should be a real tutorial...', tutorial_info) != -1
@catch_unimplemented
def test_unpublish(self):