##// END OF EJS Templates
[core][tests][events] Remove nose
Samuel Gaist -
Show More
@@ -1,6 +1,5 b''
1 import unittest
1 import unittest
2 from unittest.mock import Mock
2 from unittest.mock import Mock
3 import nose.tools as nt
4
3
5 from IPython.core import events
4 from IPython.core import events
6 import IPython.testing.tools as tt
5 import IPython.testing.tools as tt
@@ -40,9 +39,9 b' class CallbackTests(unittest.TestCase):'
40 def cb2():
39 def cb2():
41 ...
40 ...
42
41
43 self.em.register('ping_received', cb1)
42 self.em.register("ping_received", cb1)
44 nt.assert_raises(ValueError, self.em.unregister, 'ping_received', cb2)
43 self.assertRaises(ValueError, self.em.unregister, "ping_received", cb2)
45 self.em.unregister('ping_received', cb1)
44 self.em.unregister("ping_received", cb1)
46
45
47 def test_cb_error(self):
46 def test_cb_error(self):
48 cb = Mock(side_effect=ValueError)
47 cb = Mock(side_effect=ValueError)
General Comments 0
You need to be logged in to leave comments. Login now