Zhao Chao 0fc7d9e33d Correctly mocking builtin open in test_v1_shell
There's now a seperate module 'builtins' from python-future(this package
is now installed by stestr, and stestr in required by oslotest-3.6.0),
so under Python 2.x 'builtins' is also imported as a module and
'bultins.open' is mocked instead of '__builtin__.open'. And according to
the Mock document, we should always patch the object where it's looked
up, so only necessary mocking is made in this patch.

Change-Id: I57ea61cefd3b01b19475b0fa7e16f716eaaa14e6
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-07-10 14:26:02 +08:00
..
2018-06-20 12:25:06 +08:00
2018-02-21 16:33:43 +07:00
2014-02-16 13:08:07 +08:00
2017-11-24 16:04:43 +00:00
2017-11-17 14:49:56 +05:30
2017-11-24 16:04:43 +00:00
2017-07-14 08:23:18 +07:00