Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed indentation

  • Loading branch information...
commit df375629fe8caece633aeccecdf7d8b5bfebc4b9 1 parent e7660c9
Kyle Gordon authored
Showing with 34 additions and 34 deletions.
  1. +34 −34 MockerTesting.py
68 MockerTesting.py
View
@@ -11,38 +11,38 @@
class MQTTRepublisherTestCase(MockerTestCase):
- def test_instantiation(self):
- """
- An MQTTRepublisher can be instantiated
- """
- republisher = MQTTRepublisher("192.168.1.2")
- self.assertEqual("192.168.1.2", republisher.host)
-
- def test_instantiation_default_port(self):
- """
- The port should default to 1883, the default port for Mosquitto.
- """
- republisher = MQTTRepublisher("192.168.1.2")
- self.assertEqual(1883, republisher.port)
-
- def test_instantiation_set_the_port(self):
- """
- It should be possible to define a custom port to connect to.
- """
- republisher = MQTTRepublisher("192.168.1.2", port=1234)
- self.assertEqual(1234, republisher.port)
-
- def test_default_logfile(self):
- """
- The logfile should default to /var/log/mqtt-republisher.log.
- """
- republisher = MQTTRepublisher("192.168.1.2")
- self.assertEqual("/var/log/mqtt-republisher.log", republisher.logfile)
-
- def test_instantiation_set_the_logfile(self):
- """
- It should be possible to define a logfile name.
- """
- republisher = MQTTRepublisher("192.168.1.2", logfile="/tmp/logfile")
- self.assertEqual("/tmp/logfile", republisher.logfile)
+ def test_instantiation(self):
+ """
+ An MQTTRepublisher can be instantiated
+ """
+ republisher = MQTTRepublisher("192.168.1.2")
+ self.assertEqual("192.168.1.2", republisher.host)
+
+ def test_instantiation_default_port(self):
+ """
+ The port should default to 1883, the default port for Mosquitto.
+ """
+ republisher = MQTTRepublisher("192.168.1.2")
+ self.assertEqual(1883, republisher.port)
+
+ def test_instantiation_set_the_port(self):
+ """
+ It should be possible to define a custom port to connect to.
+ """
+ republisher = MQTTRepublisher("192.168.1.2", port=1234)
+ self.assertEqual(1234, republisher.port)
+
+ def test_default_logfile(self):
+ """
+ The logfile should default to /var/log/mqtt-republisher.log.
+ """
+ republisher = MQTTRepublisher("192.168.1.2")
+ self.assertEqual("/var/log/mqtt-republisher.log", republisher.logfile)
+
+ def test_instantiation_set_the_logfile(self):
+ """
+ It should be possible to define a logfile name.
+ """
+ republisher = MQTTRepublisher("192.168.1.2", logfile="/tmp/logfile")
+ self.assertEqual("/tmp/logfile", republisher.logfile)
Please sign in to comment.
Something went wrong with that request. Please try again.