def test_basecontroller(self): # Create a test offtopic message testverse = Universe(name="Testverse Basecontrol") class MockConnection(object): def send(self, obj): pass base = BaseController(MockConnection()) base.send_offtopic("Text message") offtopic = Offtopic(text="Test message", universe=testverse) base.send_offtopic(offtopic)