Skip to content

Commit

Permalink
Add test for Network.get_all_species
Browse files Browse the repository at this point in the history
This commit adds a test for get_all_species to ensure it outputs
the correct values.
  • Loading branch information
goldmanm committed Nov 10, 2019
1 parent d618de8 commit 787c7ab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rmgpy/pdep/networkTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,16 @@ def test_collision_matrix_memory_handling(self):
except:
pass

def test_get_all_species(self):
"""
Ensures all species are in the get_species_list
"""
species_list = self.network.get_all_species()
self.assertIn(self.nC4H10O, species_list)
self.assertIn(self.nC4H8, species_list)
self.assertIn(self.H2O, species_list)
self.assertIn(self.N2, species_list)


################################################################################

Expand Down

0 comments on commit 787c7ab

Please sign in to comment.