Ejemplo n.º 1
0
 def test_ctor_timeout(self):
     if skip_timeout_tests:
         self.skipTest('skipped test due to SKIP_TIMEOUT_TESTS')
     else:
         fi=FroniusInverter(timeout_ip)
         with self.assertRaises(Exception):
             fi.check_server_compatibility()
Ejemplo n.º 2
0
 def test_version_compatibility(self):
     fi = FroniusInverter(inverter_ip)
     compatible, response = fi.check_server_compatibility()
     self.assertTrue(compatible)
     self.assertEqual(type(response), dict)