[Test] Use 'assertIn' and 'assertNotIn' where possible

This commit is contained in:
Ray Speth 2014-06-10 16:21:01 +00:00
parent 7f83a49e07
commit 2558ec222d
2 changed files with 2 additions and 2 deletions

View file

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

View file

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