Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / chromite / lib / perf_uploader_unittest.py
index 71b5ed2..9e9811c 100755 (executable)
@@ -5,6 +5,8 @@
 
 """Unit tests for perf_uploader module."""
 
+from __future__ import print_function
+
 import json
 import os
 import sys
@@ -38,8 +40,11 @@ class OutputPerfValueTest(PerfUploadTestCase):
   """Test function OutputPerfValue."""
 
   def testInvalidDescription(self):
+    perf_uploader.OutputPerfValue(self.file_name, 'a' * 256, 0, 'ignored')
     self.assertRaises(ValueError, perf_uploader.OutputPerfValue,
                       'ignored', 'a' * 257, 0, 'ignored')
+
+    perf_uploader.OutputPerfValue(self.file_name, 'abcXYZ09-_.', 0, 'ignored')
     self.assertRaises(ValueError, perf_uploader.OutputPerfValue,
                       'ignored', 'a\x00c', 0, 'ignored')