Skip to content

Commit

Permalink
additional test for default values.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhooker committed Sep 11, 2012
1 parent 59fe176 commit 79abd01
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def test_gets_config(self):
self.assertEquals(self.jones_client, fixture.CHILD1)
self.assertEquals(self.config, fixture.CHILD1)

def test_default_value(self):
self.ev.wait(MAGIC_NUMBER)
self.assertEquals(self.jones_client.get('a'), fixture.CHILD1['a'])
self.assertEquals(self.jones_client.get('notinhere', 1), 1)

def test_responds_to_remap(self):
"""test that changing the associations updates config properly."""

Expand Down

0 comments on commit 79abd01

Please sign in to comment.