def setUp(self): super().setUp() self.output = io.StringIO() self.input = io.StringIO() self.annex = annexremote.Master(self.output) self.remote = mock.MagicMock(wraps=DummyRemote(self.annex)) self.annex.LinkRemote(self.remote)
def setUp(self): super().setUp() self.output = io.StringIO() self.input = io.StringIO() self.annex = annexremote.Master(self.output) self.remote = MinimalRemote(self.annex) self.annex.LinkRemote(self.remote)
def TestListenNotLinked(self): annex = annexremote.Master(self.output) with self.assertRaises(annexremote.NotLinkedError): annex.Listen(io.StringIO("INITREMOTE"))