diff options
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() |