  def testListVMSizes(self, mock_list, mock_provider):
    """Test that instance types are correctly listed."""
    mock_provider.return_value = azure_mocks.MOCK_CAPACITY_PROVIDER
    mock_list.return_value = azure_mocks.MOCK_LIST_VM_SIZES
    available_vms = azure_mocks.FAKE_ACCOUNT.compute.ListInstanceTypes()
    self.assertEqual(1, len(available_vms))
    self.assertEqual('fake-vm-type', available_vms[0]['Name'])
    self.assertEqual(4, available_vms[0]['CPU'])
    self.assertEqual(8192, available_vms[0]['Memory'])
Test that instance types are correctly listed.
tests/providers/azure/internal/test_compute.py