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()
def testInfo(self): self.driver.add(InfoEvent(1, monitors.EventInfo())) self.driver.run() self.assertEventCount(1)
def testBadDelete(self): self.driver.add(InfoEvent(1, monitors.EventInfo( self.dir / "foo", monitors.EventType.Delete))) self.driver.run() self.assertErrors()