Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaez committed Feb 5, 2014
1 parent 638f22f commit d5f2582
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test_alsamidi.py
Expand Up @@ -205,7 +205,9 @@ def setUp(self):
text = 'track melody\n' \ text = 'track melody\n' \
'6,1,0,1,2 5430786,20 0,130 0,1 108 82 0 0\n' \ '6,1,0,1,2 5430786,20 0,130 0,1 108 82 0 0\n' \
'name = value' 'name = value'
self.file.readlines.return_value = text.split('\n') lines = text.split('\n')
self.file.readlines.return_value = lines
lines[0] = lines[0] + '\n'
alsamidi.open = Mock(return_value=self.file) alsamidi.open = Mock(return_value=self.file)


alsamidi.print = Mock() alsamidi.print = Mock()
Expand Down

0 comments on commit d5f2582

Please sign in to comment.