)]}'
{"novaclient/tests/unit/v2/test_servers.py":[{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"efd39de1ff15a5096c4fd5bd444eba3fadbb4741","unresolved":false,"context_lines":[{"line_number":219,"context_line":"                    \u0027/tmp/foo.txt\u0027: six.StringIO(\u0027data\u0027),   # a stream"},{"line_number":220,"context_line":"                },"},{"line_number":221,"context_line":"            )"},{"line_number":222,"context_line":"            self.assert_called(\u0027POST\u0027, \u0027/servers\u0027)"},{"line_number":223,"context_line":"            self.assertIsInstance(s, servers.Server)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def _create_disk_config(self, disk_config):"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_0a628aad","line":222,"updated":"2015-04-03 15:34:56.000000000","message":"I would like to see the test augmented to ensure that the data transferred matches the original file.  (And yeah, I see that the other tests don\u0027t do that at present…)","commit_id":"0c80ec5e860ee4ecd666e9f5c1a179a920ccb52c"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"090e3fc6760d0e4eff940ead47fce2b66cda6b01","unresolved":false,"context_lines":[{"line_number":219,"context_line":"                    \u0027/tmp/foo.txt\u0027: six.StringIO(\u0027data\u0027),   # a stream"},{"line_number":220,"context_line":"                },"},{"line_number":221,"context_line":"            )"},{"line_number":222,"context_line":"            self.assert_called(\u0027POST\u0027, \u0027/servers\u0027)"},{"line_number":223,"context_line":"            self.assertIsInstance(s, servers.Server)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def _create_disk_config(self, disk_config):"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_368ff3cd","line":222,"in_reply_to":"baa041b7_0a628aad","updated":"2015-04-03 18:54:19.000000000","message":"I think that\u0027s a good idea, but do you have any suggestion as to how? So far, I\u0027m trying to find a way to stash the userdata in the client fixture to compare against the base64 decoded data there. (Userdata isn\u0027t returned by any api)","commit_id":"0c80ec5e860ee4ecd666e9f5c1a179a920ccb52c"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"31e077e8ac17be54657634e0dc008b08d4298b94","unresolved":false,"context_lines":[{"line_number":219,"context_line":"                    \u0027/tmp/foo.txt\u0027: six.StringIO(\u0027data\u0027),   # a stream"},{"line_number":220,"context_line":"                },"},{"line_number":221,"context_line":"            )"},{"line_number":222,"context_line":"            self.assert_called(\u0027POST\u0027, \u0027/servers\u0027)"},{"line_number":223,"context_line":"            self.assertIsInstance(s, servers.Server)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def _create_disk_config(self, disk_config):"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_bd787f90","line":222,"in_reply_to":"baa041b7_368ff3cd","updated":"2015-04-03 19:52:33.000000000","message":"Well, the first thing that comes to mind is to make use of the \u0027body\u0027 argument to self.assert_called() (see novaclient/tests/unit/fakes.py).  That may not work, however, so another possibility is to go directly into the callstack, like assert_called() does, and suck in the JSON payload and verify that the correct thing is in the correct place.\n\nTo be clear, my statement is a statement of preference rather than a statement of, \"you must do this\"…particularly now that I\u0027ve looked into how you would actually accomplish such a test :)","commit_id":"0c80ec5e860ee4ecd666e9f5c1a179a920ccb52c"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"9dd602e4b3021e6b3ef7608efbb6dab06ec67b7b","unresolved":false,"context_lines":[{"line_number":219,"context_line":"                    \u0027/tmp/foo.txt\u0027: six.StringIO(\u0027data\u0027),   # a stream"},{"line_number":220,"context_line":"                },"},{"line_number":221,"context_line":"            )"},{"line_number":222,"context_line":"            self.assert_called(\u0027POST\u0027, \u0027/servers\u0027)"},{"line_number":223,"context_line":"            self.assertIsInstance(s, servers.Server)"},{"line_number":224,"context_line":""},{"line_number":225,"context_line":"    def _create_disk_config(self, disk_config):"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_88245baf","line":222,"in_reply_to":"baa041b7_bd787f90","updated":"2015-04-03 20:40:57.000000000","message":"I wanted to consider your suggestion and was missing the simpler way to do it (the callstack), so I asked. Thanks. :)","commit_id":"0c80ec5e860ee4ecd666e9f5c1a179a920ccb52c"}],"novaclient/v2/servers.py":[{"author":{"_account_id":7730,"name":"Sahid Orentino Ferdjaoui","email":"sahid.ferdjaoui@industrialdiscipline.com","username":"sahid"},"change_message_id":"660e2a008361a7d158270fabc38c758901fe32ce","unresolved":false,"context_lines":[{"line_number":443,"context_line":"                try:"},{"line_number":444,"context_line":"                    userdata \u003d encodeutils.safe_encode(userdata)"},{"line_number":445,"context_line":"                except UnicodeDecodeError:"},{"line_number":446,"context_line":"                    # NOTE(melwitt): If it\u0027s a binary file, just base64"},{"line_number":447,"context_line":"                    #                encode it."},{"line_number":448,"context_line":"                    pass"},{"line_number":449,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"baa041b7_74c9fb77","line":446,"updated":"2015-04-03 14:56:23.000000000","message":"Seems to be not a NOTE but a comment here.","commit_id":"0c80ec5e860ee4ecd666e9f5c1a179a920ccb52c"}]}
