Example #1
0
 def test_shownode(self):
     print '\n'
     print_message(
         '---- Starting Test: {} ----'.format(inspect.stack()[0][3]), 'ok')
     slurm = Slurm()
     node = os.environ['HOSTNAME'].lower().split('.')[0]
     node_info = slurm.shownode(node)
     self.assertTrue(node_info['Arch'] == 'x86_64')
Example #2
0
 def test_shownode(self):
     print '\n'
     print_message(
         '---- Starting Test: {} ----'.format(inspect.stack()[0][3]), 'ok')
     slurm = Slurm()
     node = 'acme1'
     node_info = slurm.shownode(node)
     self.assertTrue(node_info['Arch'] == 'x86_64')
     self.assertTrue(node_info['CoresPerSocket'] == '24')