Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Corvince committed Oct 29, 2020
1 parent 6fe7a43 commit 5d7402c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ def test_remove(self):
model.schedule.remove(agent)
assert agent not in model.schedule.agents

def test_add_existing_agent(self):
model = MockModel()
agent = model.schedule.agents[0]
with self.assertRaises(Exception):
model.schedule.add(agent)


class TestRandomActivation(TestCase):
"""
Expand Down

0 comments on commit 5d7402c

Please sign in to comment.