'Validate and set a WMI Provider Architecture.'

def test_wmi_provider_architecture(self):

    wmi_sampler = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'])
    self.assertEquals(wmi_sampler.provider, ProviderArchitecture.DEFAULT)
    wmi_sampler1 = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'], provider='foo')
    wmi_sampler2 = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'], provider=123)
    self.assertEquals(wmi_sampler1.provider, ProviderArchitecture.DEFAULT)
    self.assertEquals(wmi_sampler2.provider, ProviderArchitecture.DEFAULT)
    wmi_sampler32 = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'], provider=32)
    wmi_sampler64 = WMISampler('Win32_PerfRawData_PerfOS_System', ['ProcessorQueueLength'], provider='64')
    self.assertEquals(wmi_sampler32.provider, ProviderArchitecture._32BIT)
    self.assertEquals(wmi_sampler64.provider, ProviderArchitecture._64BIT)
