diff options
author | Gábor Antal <antal@inf.u-szeged.hu> | 2016-08-30 19:09:20 +0200 |
---|---|---|
committer | Stephen Finucane <sfinucan@redhat.com> | 2016-10-12 11:12:08 +0100 |
commit | 03b99378842c5448e85b636fe38f38406570e477 (patch) | |
tree | a4f956562c27537bdba156d6d9093c7a33abac40 /HACKING.rst | |
parent | aa7c3aef956fcbdfe1c31a27dc48f0ce524c8619 (diff) | |
download | nova-03b99378842c5448e85b636fe38f38406570e477.tar.gz |
Use more specific asserts in tests
Use asserts with more specific assert methods, e.g.: from
assertTrue(sth == None) to assertIsNone(*),
assertTrue(isinstance(inst, type)) to assertIsInstace(inst, type) or
assertTrue(not sth) to assertFalse(sth).
This change ensures a better description will be shown on fail. This is
the recommended way to use assertions provided by testtools.
Change-Id: Ia4a34e0145176e077bbf7e9ed6f69d815c6ed840
Co-authored-by: Stephen Finucane <sfinucan@redhat.com>
Diffstat (limited to 'HACKING.rst')
0 files changed, 0 insertions, 0 deletions