[Test] Use 'assertIn' and 'assertNotIn' where possible
This commit is contained in:
parent
7f83a49e07
commit
2558ec222d
2 changed files with 2 additions and 2 deletions
|
|
@ -287,7 +287,7 @@ class TestReactionPath(utilities.CanteraTest):
|
|||
# nodes
|
||||
nodes2.add(A.strip())
|
||||
spec = re.search('label="(.*?)"', B).group(1)
|
||||
self.assertTrue(spec not in species)
|
||||
self.assertNotIn(spec, species)
|
||||
species.add(spec)
|
||||
|
||||
# Make sure that the output was actually parsable and that we
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ class TestThermoPhase(utilities.CanteraTest):
|
|||
|
||||
self.phase.name = 'something'
|
||||
self.assertEqual(self.phase.name, 'something')
|
||||
self.assertTrue('something' in self.phase.report())
|
||||
self.assertIn('something', self.phase.report())
|
||||
|
||||
def test_ID(self):
|
||||
self.assertEqual(self.phase.ID, 'ohmech')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue