[pygobject] tests: consitent naming style
- From: Martin Pitt <martinpitt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: consitent naming style
- Date: Wed, 24 Oct 2012 06:06:19 +0000 (UTC)
commit d0a0332feb7946f4bb6b43211d6fe3ae67e7dba5
Author: Martin Pitt <martinpitt gnome org>
Date: Wed Oct 24 08:05:43 2012 +0200
tests: consitent naming style
Stop mixing camel case and underline naming, use the latter consistently
in all tests.
tests/test_gobject.py | 64 ++++++++++++++++++++++----------------------
tests/test_interface.py | 4 +-
tests/test_option.py | 14 +++++-----
tests/test_pygtkcompat.py | 32 +++++++++++-----------
tests/test_signal.py | 10 +++---
tests/test_source.py | 23 +++++++--------
tests/test_subprocess.py | 2 +-
tests/test_thread.py | 2 +-
tests/test_unknown.py | 2 +-
9 files changed, 76 insertions(+), 77 deletions(-)
---
diff --git a/tests/test_gobject.py b/tests/test_gobject.py
index 0c23e30..19d1cf4 100644
--- a/tests/test_gobject.py
+++ b/tests/test_gobject.py
@@ -10,13 +10,13 @@ import testhelper
class TestGObjectAPI(unittest.TestCase):
- def testGObjectModule(self):
+ def test_module(self):
obj = GObject.GObject()
self.assertEqual(obj.__module__,
'gi._gobject._gobject')
- def testCompatAPI(self):
+ def test_compat_api(self):
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter('always')
# GObject formerly exposed a lot of GLib's functions
@@ -38,21 +38,21 @@ class TestGObjectAPI(unittest.TestCase):
class TestReferenceCounting(unittest.TestCase):
- def testRegularObject(self):
+ def test_regular_object(self):
obj = GObject.GObject()
self.assertEqual(obj.__grefcount__, 1)
obj = GObject.new(GObject.GObject)
self.assertEqual(obj.__grefcount__, 1)
- def testFloating(self):
+ def test_floating(self):
obj = testhelper.Floating()
self.assertEqual(obj.__grefcount__, 1)
obj = GObject.new(testhelper.Floating)
self.assertEqual(obj.__grefcount__, 1)
- def testOwnedByLibrary(self):
+ def test_owned_by_library(self):
# Upon creation, the refcount of the object should be 2:
# - someone already has a reference on the new object.
# - the python wrapper should hold its own reference.
@@ -65,7 +65,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testOwnedByLibraryOutOfScope(self):
+ def test_owned_by_library_out_of_scope(self):
obj = testhelper.OwnedByLibrary()
self.assertEqual(obj.__grefcount__, 2)
@@ -83,7 +83,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testOwnedByLibraryUsingGObjectNew(self):
+ def test_owned_by_library_using_gobject_new(self):
# Upon creation, the refcount of the object should be 2:
# - someone already has a reference on the new object.
# - the python wrapper should hold its own reference.
@@ -96,7 +96,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testOwnedByLibraryOutOfScopeUsingGobjectNew(self):
+ def test_owned_by_library_out_of_scope_using_gobject_new(self):
obj = GObject.new(testhelper.OwnedByLibrary)
self.assertEqual(obj.__grefcount__, 2)
@@ -114,7 +114,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testFloatingAndSunk(self):
+ def test_floating_and_sunk(self):
# Upon creation, the refcount of the object should be 2:
# - someone already has a reference on the new object.
# - the python wrapper should hold its own reference.
@@ -127,7 +127,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testFloatingAndSunkOutOfScope(self):
+ def test_floating_and_sunk_out_of_scope(self):
obj = testhelper.FloatingAndSunk()
self.assertEqual(obj.__grefcount__, 2)
@@ -145,7 +145,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testFloatingAndSunkUsingGObjectNew(self):
+ def test_floating_and_sunk_using_gobject_new(self):
# Upon creation, the refcount of the object should be 2:
# - someone already has a reference on the new object.
# - the python wrapper should hold its own reference.
@@ -158,7 +158,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testFloatingAndSunkOutOfScopeUsingGObjectNew(self):
+ def test_floating_and_sunk_out_of_scope_using_gobject_new(self):
obj = GObject.new(testhelper.FloatingAndSunk)
self.assertEqual(obj.__grefcount__, 2)
@@ -176,7 +176,7 @@ class TestReferenceCounting(unittest.TestCase):
obj.release()
self.assertEqual(obj.__grefcount__, 1)
- def testUninitializedObject(self):
+ def test_uninitialized_object(self):
class Obj(GObject.GObject):
def __init__(self):
x = self.__grefcount__
@@ -197,19 +197,19 @@ class TestPythonReferenceCounting(unittest.TestCase):
# Newly created instances should alwayshave two references: one for
# the GC, and one for the bound variable in the local scope.
- def testNewInstanceHasTwoRefs(self):
+ def test_new_instance_has_two_refs(self):
obj = GObject.GObject()
self.assertEqual(sys.getrefcount(obj), 2)
- def testNewInstanceHasTwoRefsUsingGObjectNew(self):
+ def test_new_instance_has_two_refs_using_gobject_new(self):
obj = GObject.new(GObject.GObject)
self.assertEqual(sys.getrefcount(obj), 2)
- def testNewSubclassInstanceHasTwoRefs(self):
+ def test_new_subclass_instance_has_two_refs(self):
obj = A()
self.assertEqual(sys.getrefcount(obj), 2)
- def testNewSubclassInstanceHasTwoRefsUsingGObjectNew(self):
+ def test_new_subclass_instance_has_two_refs_using_gobject_new(self):
obj = GObject.new(A)
self.assertEqual(sys.getrefcount(obj), 2)
@@ -227,7 +227,7 @@ class TestContextManagers(unittest.TestCase):
self.obj = self.ContextTestObject()
self.handler = self.obj.connect('notify::prop', self.on_prop_set)
- def testFreezeNotifyContext(self):
+ def test_freeze_notify_context(self):
# Verify prop tracking list
self.assertEqual(self.tracking, [])
self.obj.props.prop = 1
@@ -251,7 +251,7 @@ class TestContextManagers(unittest.TestCase):
self.assertEqual(self.tracking, [1, 2, 3])
self.assertEqual(self.obj.__grefcount__, 1)
- def testHandlerBlockContext(self):
+ def test_handler_block_context(self):
# Verify prop tracking list
self.assertEqual(self.tracking, [])
self.obj.props.prop = 1
@@ -275,7 +275,7 @@ class TestContextManagers(unittest.TestCase):
self.assertEqual(self.tracking, [1, 2])
self.assertEqual(self.obj.__grefcount__, 1)
- def testFreezeNotifyContextNested(self):
+ def test_freeze_notify_context_nested(self):
self.assertEqual(self.tracking, [])
with self.obj.freeze_notify():
self.obj.props.prop = 1
@@ -295,7 +295,7 @@ class TestContextManagers(unittest.TestCase):
# and the last one sent.
self.assertEqual(self.tracking, [3])
- def testHandlerBlockContextNested(self):
+ def test_handler_block_context_nested(self):
self.assertEqual(self.tracking, [])
with self.obj.handler_block(self.handler):
self.obj.props.prop = 1
@@ -316,7 +316,7 @@ class TestContextManagers(unittest.TestCase):
self.assertEqual(self.obj.props.prop, 3)
self.assertEqual(self.tracking, [])
- def testFreezeNotifyNormalUsageRefCounts(self):
+ def test_freeze_notify_normal_usage_ref_counts(self):
# Ensure ref counts without using methods as context managers
# maintain the same count.
self.assertEqual(self.obj.__grefcount__, 1)
@@ -325,14 +325,14 @@ class TestContextManagers(unittest.TestCase):
self.obj.thaw_notify()
self.assertEqual(self.obj.__grefcount__, 1)
- def testHandlerBlockNormalUsageRefCounts(self):
+ def test_handler_block_normal_usage_ref_counts(self):
self.assertEqual(self.obj.__grefcount__, 1)
self.obj.handler_block(self.handler)
self.assertEqual(self.obj.__grefcount__, 1)
self.obj.handler_unblock(self.handler)
self.assertEqual(self.obj.__grefcount__, 1)
- def testFreezeNotifyContextError(self):
+ def test_freeze_notify_context_error(self):
# Test an exception occurring within a freeze context exits the context
try:
with self.obj.freeze_notify():
@@ -350,7 +350,7 @@ class TestContextManagers(unittest.TestCase):
self.obj.props.prop = 2
self.assertEqual(self.tracking, [1, 2])
- def testHandlerBlockContextError(self):
+ def test_handler_block_context_error(self):
# Test an exception occurring within a handler block exits the context
try:
with self.obj.handler_block(self.handler):
@@ -377,7 +377,7 @@ class TestPropertyBindings(unittest.TestCase):
self.source = self.TestObject()
self.target = self.TestObject()
- def testDefaultBinding(self):
+ def test_default_binding(self):
binding = self.source.bind_property('int_prop', self.target, 'int_prop',
GObject.BindingFlags.DEFAULT)
binding = binding # PyFlakes
@@ -392,7 +392,7 @@ class TestPropertyBindings(unittest.TestCase):
self.assertEqual(self.source.int_prop, 1)
self.assertEqual(self.target.int_prop, 2)
- def testBiDirectionalBinding(self):
+ def test_bidirectional_binding(self):
binding = self.source.bind_property('int_prop', self.target, 'int_prop',
GObject.BindingFlags.BIDIRECTIONAL)
binding = binding # PyFlakes
@@ -407,7 +407,7 @@ class TestPropertyBindings(unittest.TestCase):
self.assertEqual(self.source.int_prop, 2)
self.assertEqual(self.target.int_prop, 2)
- def testTransformToOnly(self):
+ def test_transform_to_only(self):
def transform_to(binding, value, user_data=None):
self.assertEqual(user_data, 'test-data')
return value * 2
@@ -425,7 +425,7 @@ class TestPropertyBindings(unittest.TestCase):
self.assertEqual(self.source.int_prop, 1)
self.assertEqual(self.target.int_prop, 1)
- def testTransformFromOnly(self):
+ def test_transform_from_only(self):
def transform_from(binding, value, user_data=None):
self.assertEqual(user_data, None)
return value * 2
@@ -443,7 +443,7 @@ class TestPropertyBindings(unittest.TestCase):
self.assertEqual(self.source.int_prop, 2)
self.assertEqual(self.target.int_prop, 1)
- def testTransformBidrectional(self):
+ def test_transform_bidirectional(self):
def transform_to(binding, value, user_data=None):
self.assertEqual(user_data, 'test-data')
return value * 2
@@ -466,7 +466,7 @@ class TestPropertyBindings(unittest.TestCase):
self.assertEqual(self.source.int_prop, 2)
self.assertEqual(self.target.int_prop, 4)
- def testExplicitUnbindClearsConnection(self):
+ def test_explicit_unbind_clears_connection(self):
self.assertEqual(self.source.int_prop, 0)
self.assertEqual(self.target.int_prop, 0)
@@ -486,7 +486,7 @@ class TestPropertyBindings(unittest.TestCase):
# An already unbound BindingWeakRef will raise if unbind is attempted a second time.
self.assertRaises(ValueError, binding.unbind)
- def testReferenceCounts(self):
+ def test_reference_counts(self):
self.assertEqual(self.source.__grefcount__, 1)
self.assertEqual(self.target.__grefcount__, 1)
diff --git a/tests/test_interface.py b/tests/test_interface.py
index 2df61b1..dd01af8 100644
--- a/tests/test_interface.py
+++ b/tests/test_interface.py
@@ -37,12 +37,12 @@ GObject.type_register(MyObject)
class TestIfaceImpl(unittest.TestCase):
- def testReImplementInterface(self):
+ def test_reimplement_interface(self):
m = MyUnknown()
m.iface_method()
self.assertEqual(m.called, True)
- def testImplementInterface(self):
+ def test_implement_interface(self):
m = MyObject()
m.iface_method()
self.assertEqual(m.called, True)
diff --git a/tests/test_option.py b/tests/test_option.py
index 345d0ad..88a571f 100644
--- a/tests/test_option.py
+++ b/tests/test_option.py
@@ -57,7 +57,7 @@ class TestOption(unittest.TestCase):
self.parser.add_option_group(group)
return group
- def testParseArgs(self):
+ def test_parse_args(self):
options, args = self.parser.parse_args(
["test_option.py"])
self.assertFalse(args)
@@ -70,12 +70,12 @@ class TestOption(unittest.TestCase):
["test_option.py", "foo", "bar"])
self.assertEqual(args, [])
- def testParseArgsDoubleDash(self):
+ def test_parse_args_double_dash(self):
options, args = self.parser.parse_args(
["test_option.py", "--", "-xxx"])
#self.assertEqual(args, ["-xxx"])
- def testParseArgsGroup(self):
+ def test_parse_args_group(self):
group = self._create_group()
options, args = self.parser.parse_args(
@@ -89,20 +89,20 @@ class TestOption(unittest.TestCase):
self.assertEqual(group.values.unit_file, "test")
self.assertFalse(args)
- def testOptionValueError(self):
+ def test_option_value_error(self):
self._create_group()
self.assertRaises(OptionValueError, self.parser.parse_args,
["test_option.py", "--test-integer=text"])
- def testBadOptionError(self):
+ def test_bad_option_error(self):
self.assertRaises(BadOptionError,
self.parser.parse_args,
["test_option.py", "--unknwon-option"])
- def testOptionGroupConstructor(self):
+ def test_option_group_constructor(self):
self.assertRaises(TypeError, OptionGroup)
- def testStandardError(self):
+ def test_standard_error(self):
self._create_group()
sio = StringIO()
old_stderr = sys.stderr
diff --git a/tests/test_pygtkcompat.py b/tests/test_pygtkcompat.py
index 5fabf2a..9b58af0 100644
--- a/tests/test_pygtkcompat.py
+++ b/tests/test_pygtkcompat.py
@@ -28,54 +28,54 @@ except ImportError:
@unittest.skipUnless(Gtk, 'Gtk not available')
class TestATKCompat(unittest.TestCase):
- def testObject(self):
+ def test_object(self):
self.assertTrue(hasattr(atk, 'Object'))
@unittest.skipUnless(Gtk, 'Gtk not available')
class TestPangoCompat(unittest.TestCase):
- def testLayout(self):
+ def test_layout(self):
self.assertTrue(hasattr(pango, 'Layout'))
@unittest.skipUnless(Gtk, 'Gtk not available')
class TestPangoCairoCompat(unittest.TestCase):
- def testErrorUnderlinePath(self):
+ def test_error_underline_path(self):
self.assertTrue(hasattr(pangocairo, 'error_underline_path'))
@unittest.skipUnless(Gtk, 'Gtk not available')
class TestGTKCompat(unittest.TestCase):
- def testButtons(self):
+ def test_buttons(self):
self.assertEqual(Gdk._2BUTTON_PRESS, 5)
self.assertEqual(Gdk.BUTTON_PRESS, 4)
- def testEnums(self):
+ def test_enums(self):
self.assertEqual(gtk.WINDOW_TOPLEVEL, Gtk.WindowType.TOPLEVEL)
self.assertEqual(gtk.PACK_START, Gtk.PackType.START)
- def testFlags(self):
+ def test_flags(self):
self.assertEqual(gtk.EXPAND, Gtk.AttachOptions.EXPAND)
self.assertEqual(gtk.gdk.SHIFT_MASK, Gdk.ModifierType.SHIFT_MASK)
- def testKeysyms(self):
+ def test_keysyms(self):
import gtk.keysyms
self.assertEqual(gtk.keysyms.Escape, Gdk.KEY_Escape)
self.assertTrue(gtk.keysyms._0, Gdk.KEY_0)
- def testStyle(self):
+ def test_style(self):
widget = gtk.Button()
self.assertTrue(isinstance(widget.style.base[gtk.STATE_NORMAL],
gtk.gdk.Color))
- def testAlignment(self):
+ def test_alignment(self):
a = gtk.Alignment()
self.assertEqual(a.props.xalign, 0.0)
self.assertEqual(a.props.yalign, 0.0)
self.assertEqual(a.props.xscale, 0.0)
self.assertEqual(a.props.yscale, 0.0)
- def testBox(self):
+ def test_box(self):
box = gtk.Box()
child = gtk.Button()
@@ -94,7 +94,7 @@ class TestGTKCompat(unittest.TestCase):
self.assertEqual(padding, 0)
self.assertEqual(pack_type, gtk.PACK_END)
- def testComboBoxEntry(self):
+ def test_combobox_entry(self):
liststore = gtk.ListStore(int, str)
liststore.append((1, 'One'))
liststore.append((2, 'Two'))
@@ -120,18 +120,18 @@ class TestGTKCompat(unittest.TestCase):
self.assertEqual(combo.get_text_column(), 1)
self.assertEqual(combo.get_child().get_text(), 'One')
- def testSizeRequest(self):
+ def test_size_request(self):
box = gtk.Box()
self.assertEqual(box.size_request(), [0, 0])
- def testPixbuf(self):
+ def test_pixbuf(self):
gtk.gdk.Pixbuf()
- def testPixbufLoader(self):
+ def test_pixbuf_loader(self):
loader = gtk.gdk.PixbufLoader('png')
loader.close()
- def testPixbufFormats(self):
+ def test_pixbuf_formats(self):
formats = gtk.gdk.pixbuf_get_formats()
self.assertEqual(type(formats[0]), dict)
self.assertTrue('name' in formats[0])
@@ -139,7 +139,7 @@ class TestGTKCompat(unittest.TestCase):
self.assertTrue('mime_types' in formats[0])
self.assertEqual(type(formats[0]['extensions']), list)
- def testGdkWindow(self):
+ def test_gdk_window(self):
w = gtk.Window()
w.realize()
self.assertEqual(w.get_window().get_origin(), (0, 0))
diff --git a/tests/test_signal.py b/tests/test_signal.py
index 8b9d8ce..77dd1d3 100644
--- a/tests/test_signal.py
+++ b/tests/test_signal.py
@@ -49,11 +49,11 @@ class TestChaining(unittest.TestCase):
assert args[2:] == (1, 2, 3)
- def testChaining(self):
+ def test_chaining(self):
self.inst.emit("my_signal", 42)
assert self.inst.arg == 42
- def testChaining2(self):
+ def test_chaining2(self):
inst2 = D()
inst2.emit("my_signal", 44)
assert inst2.arg == 44
@@ -63,14 +63,14 @@ class TestChaining(unittest.TestCase):
class TestGSignalsError(unittest.TestCase):
- def testInvalidType(self, *args):
+ def test_invalid_type(self, *args):
def foo():
class Foo(GObject.GObject):
__gsignals__ = None
self.assertRaises(TypeError, foo)
gc.collect()
- def testInvalidName(self, *args):
+ def test_invalid_name(self, *args):
def foo():
class Foo(GObject.GObject):
__gsignals__ = {'not-exists': 'override'}
@@ -294,7 +294,7 @@ class TestClosures(unittest.TestCase):
self.assertEqual(inst.a, 1)
gc.collect()
- def testGString(self):
+ def test_gstring(self):
class C(GObject.GObject):
__gsignals__ = {'my_signal': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_GSTRING,
(GObject.TYPE_GSTRING,))}
diff --git a/tests/test_source.py b/tests/test_source.py
index 82be8ce..0d5c750 100644
--- a/tests/test_source.py
+++ b/tests/test_source.py
@@ -44,7 +44,7 @@ class TestSource(unittest.TestCase):
timeout.set_callback(self.timeout_callback, loop)
timeout.attach()
- def testSources(self):
+ def test_sources(self):
loop = GLib.MainLoop()
self.setup_timeout(loop)
@@ -72,7 +72,7 @@ class TestSource(unittest.TestCase):
self.assertTrue(m.is_destroyed())
self.assertTrue(idle.is_destroyed())
- def testSourcePrepare(self):
+ def test_source_prepare(self):
# this test may not terminate if prepare() is wrapped incorrectly
dispatched = [False]
loop = GLib.MainLoop()
@@ -100,7 +100,7 @@ class TestSource(unittest.TestCase):
assert dispatched[0]
- def testIsDestroyedSimple(self):
+ def test_is_destroyed_simple(self):
s = GLib.Source()
self.assertFalse(s.is_destroyed())
@@ -114,7 +114,7 @@ class TestSource(unittest.TestCase):
s.destroy()
self.assertTrue(s.is_destroyed())
- def testIsDestroyedContext(self):
+ def test_is_destroyed_context(self):
def f():
c = GLib.MainContext()
s = GLib.Source()
@@ -124,7 +124,7 @@ class TestSource(unittest.TestCase):
s = f()
self.assertTrue(s.is_destroyed())
- def testRemove(self):
+ def test_remove(self):
s = GLib.idle_add(dir)
self.assertEqual(GLib.source_remove(s), True)
# s is now removed, should fail now
@@ -135,13 +135,13 @@ class TestSource(unittest.TestCase):
self.assertEqual(GLib.source_remove(GObject.G_MAXINT32 + 1), False)
self.assertEqual(GLib.source_remove(GObject.G_MAXUINT32), False)
- def testRecurseProperty(self):
+ def test_recurse_property(self):
s = GLib.Idle()
self.assertTrue(s.can_recurse in [False, True])
s.can_recurse = False
self.assertFalse(s.can_recurse)
- def testPriority(self):
+ def test_priority(self):
s = GLib.Idle()
self.assertEqual(s.priority, GLib.PRIORITY_DEFAULT_IDLE)
s.priority = GLib.PRIORITY_HIGH
@@ -156,7 +156,7 @@ class TestSource(unittest.TestCase):
s = GLib.Source()
self.assertEqual(s.priority, GLib.PRIORITY_DEFAULT)
- def testGetCurrentTime(self):
+ def test_get_current_time(self):
# Note, deprecated API
s = GLib.Idle()
with warnings.catch_warnings(record=True) as w:
@@ -169,7 +169,7 @@ class TestSource(unittest.TestCase):
self.assertGreater(time, 1300000000.0)
self.assertLess(time, 2000000000.0)
- def testAddRemovePoll(self):
+ def test_add_remove_poll(self):
# FIXME: very shallow test, only verifies the API signature
pollfd = GLib.PollFD(99, GLib.IO_IN | GLib.IO_HUP)
self.assertEqual(pollfd.fd, 99)
@@ -177,9 +177,8 @@ class TestSource(unittest.TestCase):
source.add_poll(pollfd)
source.remove_poll(pollfd)
-
-class TestTimeout(unittest.TestCase):
- def test504337(self):
+ def test_out_of_scope_before_dispatch(self):
+ # https://bugzilla.gnome.org/show_bug.cgi?id=504337
GLib.Timeout(20)
GLib.Idle()
diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py
index 69f5f4c..eefa0f8 100644
--- a/tests/test_subprocess.py
+++ b/tests/test_subprocess.py
@@ -12,7 +12,7 @@ class TestProcess(unittest.TestCase):
self.data = data
self.loop.quit()
- def testChildWatch(self):
+ def test_child_watch(self):
self.data = None
self.loop = GLib.MainLoop()
argv = [sys.executable, '-c', 'import sys']
diff --git a/tests/test_thread.py b/tests/test_thread.py
index b707bc4..3d0557e 100644
--- a/tests/test_thread.py
+++ b/tests/test_thread.py
@@ -20,7 +20,7 @@ class TestThread(unittest.TestCase):
self.obj.connect('from-thread', self.from_thread_cb)
self.obj.emit('emit-signal')
- def testExtensionModule(self):
+ def test_extension_module(self):
GLib.idle_add(self.idle_cb)
GLib.timeout_add(50, self.timeout_cb)
self.main.run()
diff --git a/tests/test_unknown.py b/tests/test_unknown.py
index 8c076a8..ca5d460 100644
--- a/tests/test_unknown.py
+++ b/tests/test_unknown.py
@@ -10,7 +10,7 @@ TestInterface = GObject.GType.from_name('TestInterface')
class TestUnknown(unittest.TestCase):
- def testFoo(self):
+ def test_unknown_interface(self):
obj = testhelper.get_unknown()
TestUnknownGType = GObject.GType.from_name('TestUnknown')
TestUnknown = GObject.new(TestUnknownGType).__class__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]