use assertion methods

This commit is contained in:
Benjamin Peterson 2010-10-17 01:30:26 +00:00
parent cb17094dcd
commit ca9f128583
1 changed files with 2 additions and 2 deletions

View File

@ -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):