perftestsrunner_unittest.py | 179 def upload_single_text_file(mock, filesystem, content_type, filename): member in class:MainTest.test_upload_json.MockFileUploader 183 mock.called.append('upload_single_text_file') 190 self.assertEqual(MockFileUploader.called, ['FileUploader', 'upload_single_text_file']) 200 # Throwing an exception upload_single_text_file shouldn't blow up _upload_json 204 self.assertEqual(MockFileUploader.called, ['FileUploader', 'upload_single_text_file']) 209 self.assertEqual(MockFileUploader.called, ['FileUploader', 'upload_single_text_file'])
|