class_docstr: Tests for caliban.platform.cloud.types.
docstr: Test that strings parse into machine types using the Google Cloud strings,
  NOT the name string for the enum.
docstr_tok: ["Test","that","strings","parse","into","machine","types","using","the","Google","Cloud","strings",",","NOT","the","name","string","for","the","enum","."]
code: def test_parse_machine_type(self):
      """Test that strings parse into machine types using the Google Cloud strings,
      NOT the name string for the enum.
  
      """
      self.assertEqual(
          ct.MachineType.standard_8,
          ct.parse_machine_type("n1-standard-8"),
      )
  
      with self.assertRaises(ArgumentTypeError):
          ct.parse_machine_type("random-string")
  
file_path: caliban/tests/caliban/platform/cloud/test_types.py
imports: import unittest
  from argparse import ArgumentTypeError
  import hypothesis.strategies
  from hypothesis import given
  import caliban.platform.cloud.types
label_desc: Use image node_id 2 for calling the TypesTestSuite obj's underlying member method code with example usage: obj.test_parse_machine_type() without return types