def test_parse_output_adpcount(self): self.assertEqual( megacli.parse_output(''' Controller Count: 1. Exit Code: 0x01'''), { 'ControllerCount': 1, 'ExitCode': '0x01' })
def test_parse_output_adpcount(self): self.assertEqual(megacli.parse_output(''' Controller Count: 1. Exit Code: 0x01'''), {'ControllerCount': 1, 'ExitCode': '0x01'})
def test_parse_output_simple(self): self.assertEqual(megacli.parse_output(' a : b'), {'A': 'b'})
def test_parse_output_empty(self): self.assertEqual(megacli.parse_output(''), {})