Пример #1
0
 def testSimpleDelete(self):
     self.driver.add(InfoEvent(1, monitors.EventInfo(
         self.dir / "foo", monitors.EventType.Create)))
     self.driver.add(InfoEvent(1, monitors.EventInfo(
         self.dir / "foo", monitors.EventType.Delete)))
     self.driver.run()
Пример #2
0
 def testInfo(self):
     self.driver.add(InfoEvent(1, monitors.EventInfo()))
     self.driver.run()
     self.assertEventCount(1)
Пример #3
0
 def testBadDelete(self):
     self.driver.add(InfoEvent(1, monitors.EventInfo(
         self.dir / "foo", monitors.EventType.Delete)))
     self.driver.run()
     self.assertErrors()