Skip to content

Commit

Permalink
hello_world-b: Add failing test with mock builtin.print
Browse files Browse the repository at this point in the history
  • Loading branch information
DEV3L committed Aug 14, 2017
1 parent b1c1275 commit 5b592e5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hello_world/iteration_b/hello_world_test.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
import hello_world.iteration_b.hello_world
from unittest.mock import patch


@patch('builtins.print')
def test_hello_world(mock_print):
import hello_world.iteration_b.hello_world
mock_print.assert_called_with('hello world')

0 comments on commit 5b592e5

Please sign in to comment.