Exemplo n.º 1
0
    def test_existing_dest(self):
        p = self.tmppath('dest')
        with open(p, 'a'):
            pass

        f = RequiredExistingFile()
        f.copy(p)
Exemplo n.º 2
0
    def test_existing_dest(self):
        p = self.tmppath('dest')
        with open(p, 'a'):
            pass

        f = RequiredExistingFile()
        f.copy(p)
Exemplo n.º 3
0
 def test_missing_dest(self):
     with self.assertRaisesRegexp(ErrorMessage, 'Required existing file'):
         f = RequiredExistingFile()
         f.copy(self.tmppath('dest'))
Exemplo n.º 4
0
 def test_missing_dest(self):
     with self.assertRaisesRegexp(ErrorMessage, 'Required existing file'):
         f = RequiredExistingFile()
         f.copy(self.tmppath('dest'))