コード例 #1
0
    def test_start_and_stop_network(self):
        """
        Assert that start and stop update the started property.
        """

        nb = NetworkBase()

        nb.start()
        self.assertEqual(nb.started, True)

        nb.stop()
        self.assertEqual(nb.started, False)
コード例 #2
0
 def start(self):
     NetworkBase.start(self)