Reputation: 980
I have an go program that config wwan network connection using ModemManager over D-Bus. It uses this library: https://github.com/godbus/dbus. I want to write tests for my application so I need to mock ModemManager somehow. I think that best way to do it is to create peer to peer connection and run mock ModemManager server on the other side of this connection.
How to do it?
Upvotes: 1
Views: 252
Reputation: 5713
Look at using python-dbusmock, though you will need to write a ModemManager template for it since it doesn’t have one already.
Upvotes: 1