original_docstring: Check that arrays with a forced type are enforced.
docstring: Check that arrays with a forced type are enforced.
docstring_tokens: Check that arrays with a forced type are enforced .
code: def testEnforcedArray(self):
      """Check that arrays with a forced type are enforced."""
      sample = TestRDFValueArray()
  
      # Simple type should be coerced to an RDFString.
      sample.Append("hello")
      self.assertIsInstance(sample[0], rdfvalue.RDFString)
  
      # Reject appending invalid types.
      self.assertRaises(ValueError, sample.Append, rdfvalue.RDFDatetime.Now())
code_tokens: def testEnforcedArray ( self ) : sample = TestRDFValueArray ( ) sample . Append ( "hello" ) self . assertIsInstance ( sample [ 0 ] , rdfvalue . RDFString ) self . assertRaises ( ValueError , sample . Append , rdfvalue . RDFDatetime . Now ( ) )
short_docstring: Check that arrays with a forced type are enforced.
short_docstring_tokens: Check that arrays with a forced type are enforced .
comment: """Check that arrays with a forced type are enforced."""$SEP$# Simple type should be coerced to an RDFString.$SEP$# Reject appending invalid types.