testinggtk r256 - trunk/tests
- From: bjornl svn gnome org
- To: svn-commits-list gnome org
- Subject: testinggtk r256 - trunk/tests
- Date: Wed, 25 Jun 2008 22:06:20 +0000 (UTC)
Author: bjornl
Date: Wed Jun 25 22:06:20 2008
New Revision: 256
URL: http://svn.gnome.org/viewvc/testinggtk?rev=256&view=rev
Log:
Test for checking the types of the children
Modified:
trunk/tests/test_filechooserbutton.py
Modified: trunk/tests/test_filechooserbutton.py
==============================================================================
--- trunk/tests/test_filechooserbutton.py (original)
+++ trunk/tests/test_filechooserbutton.py Wed Jun 25 22:06:20 2008
@@ -8,3 +8,12 @@
assert fc_button.get_title() == 'foo'
assert fc_button.get_width_chars() == -1
assert fc_button.get_focus_on_click()
+
+def test_get_children():
+ '''
+ Test the types of the filer chooser buttons children.
+ '''
+ fc_button = gtk.FileChooserButton('foo')
+ children = fc_button.get_children()
+ assert isinstance(children[0], gtk.Button)
+ assert isinstance(children[1], gtk.ComboBox)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]