Exemplo n.º 1
0
 def setUp(self):
     self.plugin = OperatingSystem()
     self.device = StringAttributeObject()
     acc = ItemsAccumulator()
     acc.new_item()
     self.results = {'Win32_SystemEnclosure': acc.items,
                     'Win32_ComputerSystem': acc.items,
                     'Win32_OperatingSystem': acc.items,
                     'exchange_version': Mock(stdout=['15'])}
Exemplo n.º 2
0
 def setUp(self):
     self.plugin = OperatingSystem()
     self.device = StringAttributeObject()
     self.results = StringAttributeObject()
     self.results.MSCluster = ()
     self.results.Win32_SystemEnclosure = [StringAttributeObject()]
     self.results.Win32_ComputerSystem = [StringAttributeObject({'blah': 'blah'})]
     self.results.Win32_OperatingSystem = [StringAttributeObject()]
     self.results.exchange_version = Mock(stdout=['15'])
     self.results.ActiveDirectory = [StringAttributeObject()]
     for k in ('TotalVisibleMemorySize', 'TotalVirtualMemorySize'):
         setattr(self.results.Win32_OperatingSystem[0], k, 1)
Exemplo n.º 3
0
 def setUp(self):
     self.plugin = OperatingSystem()
     self.device = StringAttributeObject()
     self.results = load_pickle_file(self, 'OperatingSystem_process_103136')[0]
Exemplo n.º 4
0
 def setUp(self):
     self.plugin = OperatingSystem()
     self.device = load_pickle(self, 'device')
     self.results = load_pickle(self, 'results')
Exemplo n.º 5
0
 def setUp(self):
     self.plugin = OperatingSystem()
     self.device = StringAttributeObject()