It looks to me that you're using mock to get raw_input, which is fine, but trying to test something coming from standard output (being printed to the screen). You'd have to set up some code to capture standard output as well: maybe something like this: http://pytest.org/latest/capture.html.

It could also be valuable to pick a different program to test; stdin and stdout are tricky this way. Good job finding the mock library though.