Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/units/client/offline_routes.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@sugarlabs.org>2013-11-04 21:05:37 (GMT)
committer Aleksey Lim <alsroot@sugarlabs.org>2013-11-04 21:33:39 (GMT)
commit35588c31ab5270e6c973f59725d2ed009e233feb (patch)
treef213fa95dbde7700596e19d63a777b8ae97b1cb5 /tests/units/client/offline_routes.py
parent1eff810db0c62174e8d445f15e4b1604665ac18d (diff)
Actualize ASLO sync script
Diffstat (limited to 'tests/units/client/offline_routes.py')
-rwxr-xr-xtests/units/client/offline_routes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/units/client/offline_routes.py b/tests/units/client/offline_routes.py
index ac7af1b..2300b7a 100755
--- a/tests/units/client/offline_routes.py
+++ b/tests/units/client/offline_routes.py
@@ -2,6 +2,7 @@
# sugar-lint: disable
import json
+import hashlib
from cStringIO import StringIO
from zipfile import ZipFile
from os.path import exists
@@ -311,6 +312,7 @@ class OfflineRoutes(tests.Test):
'data': {
'unpack_size': len(activity_info),
'blob_size': len(blob),
+ 'digest': hashlib.sha1(blob).hexdigest(),
'mime_type': 'application/vnd.olpc-sugar',
'spec': {'*-*': {'commands': {'activity': {'exec': 'true'}}, 'requires': {}}},
},