Beispiel #1
0
    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)
Beispiel #2
0
    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)
Beispiel #3
0
 def TestListenNotLinked(self):
     annex = annexremote.Master(self.output)
     with self.assertRaises(annexremote.NotLinkedError):
         annex.Listen(io.StringIO("INITREMOTE"))