Commit ca9f1285 authored by Benjamin Peterson's avatar Benjamin Peterson

use assertion methods

parent cb17094d
......@@ -13,14 +13,14 @@ class TestGetProfile(unittest.TestCase):
sys.setprofile(None)
def test_empty(self):
assert sys.getprofile() is None
self.assertIsNone(sys.getprofile())
def test_setget(self):
def fn(*args):
pass
sys.setprofile(fn)
assert sys.getprofile() == fn
self.assertIs(sys.getprofile(), fn)
class HookWatcher:
def __init__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment