@@ -0,0 +1,1148 @@
+import mock%0Aimport unittest2 as unittest%0A%0Afrom akanda.rug import debug%0A%0A%0Aclass TestDebug(unittest.TestCase):%0A%0A    @mock.patch('akanda.rug.worker.WorkerContext')%0A    @mock.patch('akanda.rug.state.Automaton')%0A    @mock.patch('pdb.set_trace')%0A    def test_debug_one_router(self, set_trace, automaton, ctx):%0A        ctx.return_value.neutron.get_router_detail.return_value = mock.Mock(%0A            tenant_id='123'%0A        )%0A        debug.debug_one_router(%5B'--router-id', 'X'%5D)%0A%0A        ctx.return_value.neutron.get_router_detail.assert_called_once_with('X')%0A        assert set_trace.called%0A        automaton.assert_called_once_with(%0A            'X',%0A            '123',%0A            debug.delete_callback,%0A            debug.bandwidth_callback,%0A            ctx.return_value,%0A            100%0A        )%0A%0A        class CrudMatch(object):%0A%0A            def __init__(self, crud):%0A                self.crud = crud%0A%0A            def __eq__(self, other):%0A                return self.crud == other.crud%0A%0A        automaton.return_value.send_message.assert_called_once_with(%0A            CrudMatch('update')%0A        )%0A        automaton.return_value.update.assert_called%0A

Write tests for `debug_one_router`.