Skip to content

Commit

Permalink
add unit test for sleep function
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Jul 29, 2016
1 parent d556786 commit a3ae2a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,3 +423,8 @@ def test_start_background_task(self, eio):
s.start_background_task('foo', 'bar', baz='baz')
s.eio.start_background_task.assert_called_once_with('foo', 'bar',
baz='baz')

def test_sleep(self, eio):
s = server.Server()
s.sleep(1.23)
s.eio.sleep.assert_called_once_with(1.23)

0 comments on commit a3ae2a9

Please sign in to comment.