[testinggtk] tests for gtk.gdk.Region
- From: Björn Lindqvist <bjornl src gnome org>
- To: svn-commits-list gnome org
- Subject: [testinggtk] tests for gtk.gdk.Region
- Date: Fri, 10 Jul 2009 14:04:10 +0000 (UTC)
commit 9ee35c07f7efd006f259aedbb5f35cd1b0929a54
Author: Björn Lindqvist <bjourne gmail com>
Date: Fri Jul 10 13:07:41 2009 +0200
tests for gtk.gdk.Region
tests/gdk/test_region.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/tests/gdk/test_region.py b/tests/gdk/test_region.py
new file mode 100644
index 0000000..dfc09f9
--- /dev/null
+++ b/tests/gdk/test_region.py
@@ -0,0 +1,11 @@
+'''
+Tests for the ``gtk.gdk.Region`` class.
+'''
+from gtk import gdk
+
+def test_empty_region():
+ region = gdk.Region()
+ assert region.empty()
+ assert region.equal(gdk.Region())
+ assert region.get_clipbox() == gdk.Rectangle(0, 0, 0, 0)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]