File: test_AnnexRemoteSetup.py

package info (click to toggle)
annexremote 1.6.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 400 kB
  • sloc: python: 1,637; sh: 24; makefile: 10
file content (19 lines) | stat: -rw-r--r-- 427 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# -*- coding: utf-8 -*-

import io
import unittest

import annexremote


class SetupTestCase(unittest.TestCase):
    def setUp(self):
        super().setUp()

        self.output = io.StringIO()
        self.input = io.StringIO()

    def test_ListenNotLinked(self):
        annex = annexremote.Master(self.output)
        with self.assertRaises(annexremote.NotLinkedError):
            annex.Listen(io.StringIO("INITREMOTE"))