Ejemplo n.º 1
0
 def test_not_exists(self):
     doesntexist = os.path.join(self.mkdtemp(), 'doesntexist')
     mismatch = DirContains([]).match(doesntexist)
     self.assertThat(PathExists().match(doesntexist).describe(),
                     Equals(mismatch.describe()))
Ejemplo n.º 2
0
 def test_exists(self):
     tempdir = self.mkdtemp()
     self.assertThat(tempdir, PathExists())
Ejemplo n.º 3
0
 def test_not_exists(self):
     doesntexist = os.path.join(self.mkdtemp(), 'doesntexist')
     mismatch = PathExists().match(doesntexist)
     self.assertThat("%s does not exist." % doesntexist,
                     Equals(mismatch.describe()))
Ejemplo n.º 4
0
 def test_not_exists(self):
     doesntexist = os.path.join(self.mkdtemp(), 'doesntexist')
     mismatch = PathExists().match(doesntexist)
     self.assertThat(
         "%s does not exist." % doesntexist, Equals(mismatch.describe()))