Skip to content

Commit

Permalink
Merge pull request #49 from richardjgowers/universetests
Browse files Browse the repository at this point in the history
Added tests for Universe setter typeerror
  • Loading branch information
dotsdl committed Apr 1, 2016
2 parents a4c016e + c369e2e commit a5a98e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mdsynthesis/tests/test_treants.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def test_set_universe(self, treant):
assert treant.udef.topology == GRO
assert treant.udef.trajectory == XTC

def test_add_univese_typeerror(self, treant):
"""Test checking of what is passed to setter"""
with pytest.raises(TypeError):
treant.universe = 72

def test_remove_universe(self, treant):
"""Test universe removal"""
treant.udef.topology = GRO
Expand Down

0 comments on commit a5a98e9

Please sign in to comment.