def test_behavior_readonly_public_attributes(self): event = FileSystemEvent(EVENT_TYPE_MODIFIED, path_1, True) for prop in list_attributes(event): self.assertRaises(AttributeError, setattr, event, prop, None)
def test_behavior_readonly_public_attributes(self): event = DirCreatedEvent(path_1) for prop in list_attributes(event): self.assertRaises(AttributeError, setattr, event, prop, None)
def test_behavior_readonly_public_attributes(self): event = FileSystemMovedEvent(path_2, path_1, True) for prop in list_attributes(event): self.assertRaises(AttributeError, setattr, event, prop, None)
def test_behavior_readonly_public_attributes(self): event = DirMovedEvent(path_1, path_2) for prop in list_attributes(event): self.assertRaises(AttributeError, setattr, event, prop, None)