Commits

Michel Albert committed d426ae1 Draft

PEP8 Fixes (no code changes, only whitespace).

  • Participants
  • Parent commits dfa4dd4
  • Branches pythonify

Comments (0)

Files changed (1)

 import os.path
 import unittest
 
+
 from fritzconnection import (
     FritzXmlParser,
     FritzDescParser,
     FritzSCDPParser,
     FritzAction,
-    FritzActionArgument,
     FritzService,
-    )
+)
 
 FRITZBOX_MODEL = 'FRITZ!Box Fon WLAN 7170'
 DESCRIPTION_FILE = os.path.join('test_xml', 'igddesc.xml')
 
     def test_nodename(self):
         self.assertEqual('{%s}%s' % (self.namespace, 'mynode'),
-                          self.fp.nodename('mynode'))
+                         self.fp.nodename('mynode'))
 
 
 class TestFritzDescParser(unittest.TestCase):
             'urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1',
             '/upnp/control/WANCommonIFC1',
             '/igdicfgSCPD.xml'
-            )
+        )
         self.fp = FritzSCDPParser(None, None, self.service, filename=SCPD_FILE)
 
     def test_get_service_name(self):
     control_url = '/upnp/control/WANIPConn1'
 
     # typical response as given by call_action('GetStatusInfo'):
-    response = b'<?xml version="1.0" encoding="utf-8"?>\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\n<s:Body>\n<u:GetStatusInfoResponse xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">\n<NewConnectionStatus>Connected</NewConnectionStatus>\n<NewLastConnectionError>ERROR_NONE</NewLastConnectionError>\n<NewUptime>29938</NewUptime>\n</u:GetStatusInfoResponse>\n</s:Body>\n</s:Envelope>'
+    response = (
+        b'<?xml version="1.0" encoding="utf-8"?>\n'
+        b'<s:Envelope '
+        b'xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" '
+        b's:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\n'
+        b'<s:Body>\n'
+        b'<u:GetStatusInfoResponse '
+        b'xmlns:u="urn:schemas-upnp-org:service:WANIPConnection:1">\n'
+        b'<NewConnectionStatus>Connected</NewConnectionStatus>\n'
+        b'<NewLastConnectionError>ERROR_NONE</NewLastConnectionError>\n'
+        b'<NewUptime>29938</NewUptime>\n'
+        b'</u:GetStatusInfoResponse>\n'
+        b'</s:Body>\n'
+        b'</s:Envelope>')
 
     def get_arguments(self):
         """