Example #1
0
 def test_validate_task_run_id(self):
     self.assertEqual(
         '1d69b9f088008811',
         task_request._validate_task_run_id(Prop(), '1d69b9f088008811'))
     self.assertEqual(None, task_request._validate_task_run_id(Prop(), ''))
     with self.assertRaises(ValueError):
         task_request._validate_task_run_id(Prop(), '1')
 def test_validate_task_run_id(self):
   self.assertEqual(
       '1d69b9f088008811',
       task_request._validate_task_run_id(Prop(), '1d69b9f088008811'))
   self.assertEqual(None, task_request._validate_task_run_id(Prop(), ''))
   with self.assertRaises(ValueError):
     task_request._validate_task_run_id(Prop(), '1')
Example #3
0
 def test_validate_task_run_id(self):
   class P(object):
     _name = 'foo'
   self.assertEqual(
       '1d69b9f088008811',
       task_request._validate_task_run_id(P(), '1d69b9f088008811'))
   self.assertEqual(None, task_request._validate_task_run_id(P(), ''))
   with self.assertRaises(ValueError):
     task_request._validate_task_run_id(P(), '1')
Example #4
0
    def test_validate_task_run_id(self):
        class P(object):
            _name = 'foo'

        self.assertEqual(
            '1d69b9f088008811',
            task_request._validate_task_run_id(P(), '1d69b9f088008811'))
        self.assertEqual(None, task_request._validate_task_run_id(P(), ''))
        with self.assertRaises(ValueError):
            task_request._validate_task_run_id(P(), '1')