testinggtk r210 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r210 - trunk/tests
- Date: Sat, 21 Jun 2008 18:44:47 +0000 (UTC)
Author: bjornl
Date: Sat Jun 21 18:44:47 2008
New Revision: 210
URL: http://svn.gnome.org/viewvc/testinggtk?rev=210&view=rev
Log:
Tests for the gtk.Menu class
Added:
trunk/tests/test_menu.py
Added: trunk/tests/test_menu.py
==============================================================================
--- (empty file)
+++ trunk/tests/test_menu.py Sat Jun 21 18:44:47 2008
@@ -0,0 +1,12 @@
+'''
+Tests for the ``gtk.Menu`` class.
+'''
+import gtk
+
+def test_default_attributes():
+ menu = gtk.Menu()
+ assert not menu.get_active()
+ assert not menu.get_accel_group()
+ assert not menu.get_attach_widget()
+ assert not menu.get_tearoff_state()
+ assert not menu.get_title()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]