[gegl] tests/python: Add trivial test for gegl_config/GeglConfig access
- From: Jon Nordby <jonnor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tests/python: Add trivial test for gegl_config/GeglConfig access
- Date: Wed, 1 Aug 2012 13:09:58 +0000 (UTC)
commit 98dd8b85be1ce8de617b54a343fa84e3fa01467a
Author: Jon Nordby <jononor gmail com>
Date: Wed Aug 1 15:04:08 2012 +0200
tests/python: Add trivial test for gegl_config/GeglConfig access
tests/python/test-gegl.py | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/tests/python/test-gegl.py b/tests/python/test-gegl.py
index e7b3e1f..ee10cb7 100755
--- a/tests/python/test-gegl.py
+++ b/tests/python/test-gegl.py
@@ -35,6 +35,15 @@ class TestGegl(unittest.TestCase):
Gegl.init(0, "");
Gegl.exit();
+ def test_config_defaults(self):
+ Gegl.init(0, "")
+ gegl_config = Gegl.config()
+ # Some default that are unlikely to change
+ self.assertEqual(gegl_config.props.quality, 1.0)
+ self.assertEqual(gegl_config.get_property('tile-width'), 128)
+ self.assertEqual(gegl_config.get_property('tile-height'), 64)
+ Gegl.exit()
+
if __name__ == '__main__':
unittest.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]