testinggtk r245 - trunk/tests/gdk
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r245 - trunk/tests/gdk
- Date: Wed, 25 Jun 2008 21:02:57 +0000 (UTC)
Author: bjornl
Date: Wed Jun 25 21:02:57 2008
New Revision: 245
URL: http://svn.gnome.org/viewvc/testinggtk?rev=245&view=rev
Log:
Tests for the gtk.gdk.Pixbuf class
Modified:
trunk/tests/gdk/test_pixbuf.py
Modified: trunk/tests/gdk/test_pixbuf.py
==============================================================================
--- trunk/tests/gdk/test_pixbuf.py (original)
+++ trunk/tests/gdk/test_pixbuf.py Wed Jun 25 21:02:57 2008
@@ -14,3 +14,12 @@
pixbuf = gdk.Pixbuf(gdk.COLORSPACE_RGB, False, 8, 100, 100)
pixbuf.save_to_callback(func, 'jpeg')
assert called[0]
+
+def test_save_to_callback_options_none():
+ '''
+ Ensure that ``None`` can be specified explicitly as the
+ ``options`` argument to ``save_to_callback``.
+ '''
+ pixbuf = gdk.Pixbuf(gdk.COLORSPACE_RGB, False, 8, 100, 100)
+ pixbuf.save_to_callback(lambda x: x, 'jpeg', options = None)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]