  def testGetInstanceTypeByCPU(self):
    """Test that the instance type matches the requested amount of CPU cores."""
    self.assertEqual('m4.large', common.GetInstanceTypeByCPU(2))
    self.assertEqual('m4.16xlarge', common.GetInstanceTypeByCPU(64))
    with self.assertRaises(ValueError):
      common.GetInstanceTypeByCPU(0)
    with self.assertRaises(ValueError):
      common.GetInstanceTypeByCPU(256)
Test that the instance type matches the requested amount of CPU cores.
tests/providers/aws/internal/test_common.py