def test_validate_isolated(self): task_request._validate_isolated(Prop(), "0123456789012345678901234567890123456789") task_request._validate_isolated(Prop(), "0123456789012345678901234567890123abcdef") with self.assertRaises(datastore_errors.BadValueError): task_request._validate_isolated(Prop(), "123456789012345678901234567890123456789") with self.assertRaises(datastore_errors.BadValueError): task_request._validate_isolated(Prop(), "g123456789012345678901234567890123456789")
def test_validate_isolated(self): task_request._validate_isolated( Prop(), '0123456789012345678901234567890123456789') task_request._validate_isolated( Prop(), '0123456789012345678901234567890123abcdef') with self.assertRaises(datastore_errors.BadValueError): task_request._validate_isolated( Prop(), '123456789012345678901234567890123456789') with self.assertRaises(datastore_errors.BadValueError): task_request._validate_isolated( Prop(), 'g123456789012345678901234567890123456789')