Convert test_dbg_signal

This commit is contained in:
Raphael Pierzina 2015-04-03 21:45:10 +02:00
parent 45e95d497d
commit 9d39fbd4e5
2 changed files with 5 additions and 5 deletions

View File

@ -33,3 +33,8 @@ def signal():
def test_signal_name(signal):
"""Test signal_name()."""
assert debug.signal_name(signal) == 'fake'
def test_dbg_signal(signal):
"""Test dbg_signal()."""
assert debug.dbg_signal(signal, [23, 42]) == 'fake(23, 42)'

View File

@ -38,11 +38,6 @@ class TestDebug(unittest.TestCase):
def setUp(self):
self.signal = stubs.FakeSignal()
def test_dbg_signal(self):
"""Test dbg_signal()."""
self.assertEqual(debug.dbg_signal(self.signal, [23, 42]),
'fake(23, 42)')
def test_dbg_signal_eliding(self):
"""Test eliding in dbg_signal()."""
self.assertEqual(debug.dbg_signal(self.signal,