Пример #1
0
    def test_parse_output_adpcount(self):
        self.assertEqual(
            megacli.parse_output(''' 
Controller Count: 1.
 
Exit Code: 0x01'''), {
                'ControllerCount': 1,
                'ExitCode': '0x01'
            })
Пример #2
0
    def test_parse_output_adpcount(self):
        self.assertEqual(megacli.parse_output(''' 
Controller Count: 1.
 
Exit Code: 0x01'''), {'ControllerCount': 1,
                      'ExitCode': '0x01'})
Пример #3
0
 def test_parse_output_simple(self):
     self.assertEqual(megacli.parse_output(' a : b'), {'A': 'b'})
Пример #4
0
 def test_parse_output_empty(self):
     self.assertEqual(megacli.parse_output(''), {})
Пример #5
0
 def test_parse_output_simple(self):
     self.assertEqual(megacli.parse_output(' a : b'), {'A': 'b'})
Пример #6
0
 def test_parse_output_empty(self):
     self.assertEqual(megacli.parse_output(''), {})