Beispiel #1
0
 def test_settings(self):
     """ test getSettings byte_response from mppUtils """
     utils = mpputils.mppUtils('TEST')
     response = utils.getSettings()
     print(response)
     self.assertIsInstance(response, dict)
Beispiel #2
0
 def test_full_status(self):
     """ test full status byte_response from mppUtils """
     utils = mpputils.mppUtils('TEST')
     response = utils.getFullStatus()
     print(response)
     self.assertIsInstance(response, dict)
Beispiel #3
0
 def test_serial_number(self):
     """ test serial number byte_response from mppUtils """
     utils = mpputils.mppUtils('TEST')
     response = utils.getSerialNumber()
     print(response)
     self.assertEqual(response, '9293333010501')
Beispiel #4
0
 def test_all_commands(self):
     """ test known commands byte_response from mppUtils """
     utils = mpputils.mppUtils('TEST')
     response = utils.getKnownCommands()
     print(response)
     self.assertIsInstance(response, list)
Beispiel #5
0
 def test_mpputils_init_test(self):
     """ test initialisation of TEST connection"""
     utils = mpputils.mppUtils('TEST')
     # command = inverter.execute('QPIWS')
     # print(command)
     self.assertIsInstance(utils, mpputils.mppUtils)