)]}'
{"glanceclient/tests/unit/test_shell.py":[{"author":{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},"change_message_id":"3f03a4c36837586b04ccc0b395ef793a51d61a23","unresolved":false,"context_lines":[{"line_number":508,"context_line":"    @mock.patch(\u0027sys.stdout\u0027, six.StringIO())"},{"line_number":509,"context_line":"    @mock.patch(\u0027sys.stderr\u0027, six.StringIO())"},{"line_number":510,"context_line":"    def test_main_noargs(self):"},{"line_number":511,"context_line":"        # Ensure that main works with no command-line arguments"},{"line_number":512,"context_line":"        try:"},{"line_number":513,"context_line":"            openstack_shell.main()"},{"line_number":514,"context_line":"        except SystemExit:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_844c7543","line":511,"updated":"2015-09-28 08:47:46.000000000","message":"Actually, it is not true because you are passing \u0027glance\u0027 argument  as argv here. Also it is not quite easy to understand how this test is related to initial issue because we are not checking that \u0027glance\u0027 parameter has been passed correctly.","commit_id":"71e60a6b7b5ad3d59e50eabda0b1093ec75e7465"},{"author":{"_account_id":14676,"name":"Kairat Kushaev","email":"kkushaev@mirantis.com","username":"kairat_kushaev"},"change_message_id":"18d7b35479fae061cec46d0d896aac327048e963","unresolved":false,"context_lines":[{"line_number":508,"context_line":"    @mock.patch(\u0027sys.stdout\u0027, six.StringIO())"},{"line_number":509,"context_line":"    @mock.patch(\u0027sys.stderr\u0027, six.StringIO())"},{"line_number":510,"context_line":"    def test_main_noargs(self):"},{"line_number":511,"context_line":"        # Ensure that main works with no command-line arguments"},{"line_number":512,"context_line":"        try:"},{"line_number":513,"context_line":"            openstack_shell.main()"},{"line_number":514,"context_line":"        except SystemExit:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_181d18bd","line":511,"in_reply_to":"9a1a9d01_387edc19","updated":"2015-09-28 14:00:27.000000000","message":"Yep, my fault.","commit_id":"71e60a6b7b5ad3d59e50eabda0b1093ec75e7465"},{"author":{"_account_id":6676,"name":"zqfan","email":"aji.zqfan@gmail.com","username":"aji-zqfan"},"change_message_id":"d88135ba41ceb8cd84a333557e2759725faab1d1","unresolved":false,"context_lines":[{"line_number":508,"context_line":"    @mock.patch(\u0027sys.stdout\u0027, six.StringIO())"},{"line_number":509,"context_line":"    @mock.patch(\u0027sys.stderr\u0027, six.StringIO())"},{"line_number":510,"context_line":"    def test_main_noargs(self):"},{"line_number":511,"context_line":"        # Ensure that main works with no command-line arguments"},{"line_number":512,"context_line":"        try:"},{"line_number":513,"context_line":"            openstack_shell.main()"},{"line_number":514,"context_line":"        except SystemExit:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a1a9d01_387edc19","line":511,"in_reply_to":"9a1a9d01_844c7543","updated":"2015-09-28 13:56:24.000000000","message":"when we run a command, for say, glance --help, glance is sys.argv[0], it is the program name, --help is the first parameter.","commit_id":"71e60a6b7b5ad3d59e50eabda0b1093ec75e7465"}]}
