Пример #1
0
    def test_existing_dest(self):
        p = self.tmppath('dest')
        with open(p, 'a'):
            pass

        f = RequiredExistingFile()
        f.copy(p)
Пример #2
0
    def test_existing_dest(self):
        p = self.tmppath('dest')
        with open(p, 'a'):
            pass

        f = RequiredExistingFile()
        f.copy(p)
Пример #3
0
 def test_missing_dest(self):
     with self.assertRaisesRegexp(ErrorMessage, 'Required existing file'):
         f = RequiredExistingFile()
         f.copy(self.tmppath('dest'))
Пример #4
0
 def test_missing_dest(self):
     with self.assertRaisesRegexp(ErrorMessage, 'Required existing file'):
         f = RequiredExistingFile()
         f.copy(self.tmppath('dest'))