Using assertIsInstance() instead of assertEqual(True, isinstance())

Change-Id: I567519f19d415a17a5253d3864031583619586b4
This commit is contained in:
Anh Tran 2016-09-28 10:30:59 +07:00
parent 36b52a14a2
commit 66c9b13212

@ -146,7 +146,7 @@ class ShellTest(testtools.TestCase):
def test_build_option_parser(self):
tacker_shell = openstack_shell.TackerShell('1.0')
result = tacker_shell.build_option_parser('descr', '1.0')
self.assertEqual(True, isinstance(result, argparse.ArgumentParser))
self.assertIsInstance(result, argparse.ArgumentParser)
def test_main_with_unicode(self):
self.mox.StubOutClassWithMocks(openstack_shell, 'TackerShell')