Commits

Tarek Ziadé committed 345d547

we want to proxy/fake a single server

Comments (0)

Files changed (2)

     print 'Creating user "%s"'  % username
     weave.createUser(server, username, password, email)
 
-    steps += 1
-    try:
-        print 'Adding data to the user account'
-        node = weave.getUserStorageNode(server, username, password).rstrip('/')
+    # deleting the user
+    print 'Deleting the user'
+    weave.deleteUser(server, username, password)
 
-        # adding data
-        item = {'id': '1', 'payload': 'whatever'}
-        weave.add_or_modify_item(node, username, password,
-                'tabs', item)
-        steps += 1
-    finally:
-        # deleting the user
-        print 'Deleting the user'
-        weave.deleteUser(server, username, password)
-        steps += 1
+    # the name should be available again
+    return weave.checkNameAvailable(server, username)
 
-    return steps
 
 if __name__ == '__main__':
     sync_session()
         # stopping the proxy
         stop()
 
-    assert res == 3
+    assert res