fix the way we determine if the PLCAPI is newinterface (AddIpAddress) or not
[tests.git] / system / TestPlc.py
index f1ecd27..eb7a15e 100644 (file)
@@ -147,7 +147,7 @@ class TestPlc:
        self.apiserver=TestApiserver(self.url,options.dry_run)
         
     def has_addresses_api (self):
-        return hasattr(self.apiserver,'AddIpAddress')
+        return self.apiserver.has_method('AddIpAddress')
 
     def name(self):
         name=self.plc_spec['name']