diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-12-31 21:02:48 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-12-31 21:31:06 (GMT) |
commit | 499eb6e121dfe7cef521553eba3f85e9122a6cea (patch) | |
tree | 16ddaf5e024c62cb9dad542976cb4453c9521441 /tests/units/model/context.py | |
parent | fc98d378a6726923daa994e0d96efa8ede13073a (diff) |
Use stubs for missed context images; rename context types
Diffstat (limited to 'tests/units/model/context.py')
-rwxr-xr-x | tests/units/model/context.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/units/model/context.py b/tests/units/model/context.py index 25b21b4..b48db6f 100755 --- a/tests/units/model/context.py +++ b/tests/units/model/context.py @@ -1,6 +1,8 @@ #!/usr/bin/env python # sugar-lint: disable +from os.path import exists + from __init__ import tests from sugar_network.node import obs @@ -40,6 +42,21 @@ class ContextTest(tests.Test): }) self.assertEqual(['common', 'bar'], ipc.get(['context', guid, 'layer'])) + def test_DefaultImages(self): + self.start_online_client() + ipc = IPCConnection() + + guid = ipc.post(['context'], { + 'guid': 'guid', + 'type': 'activity', + 'title': 'title', + 'summary': 'summary', + 'description': 'description', + }) + assert exists('master/context/gu/guid/artifact_icon.blob') + assert exists('master/context/gu/guid/icon.blob') + assert exists('master/context/gu/guid/preview.blob') + if __name__ == '__main__': tests.main() |