| Total Complexity | 2 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/python |
||
| 7 | class ViewerMediumTests(DependencyInjectionTestBase): |
||
| 8 | |||
| 9 | def test_Returns_input(self): |
||
| 10 | from niprov.mediumviewer import ViewerMedium |
||
| 11 | exporter = ViewerMedium() |
||
| 12 | fmt = Mock() |
||
| 13 | with patch('niprov.mediumviewer.webbrowser') as webbrowser: |
||
| 14 | exporter.export('the filename', fmt) |
||
| 15 | webbrowser.open.assert_called_with('the filename') |
||
| 16 | |||
| 19 |