def setUp(self): super(TestFileView, self).setUp() # Prepare our fixture. with self.ACLChecksDisabled(): self._CreateFileVersions() self.RequestAndGrantClientApproval("C.0000000000000001") self.canary_override = test_lib.CanaryModeOverrider( self.token, target_canary_mode=True) self.canary_override.Start()
def setUp(self): super(TestTimeline, self).setUp() # Prepare our fixture. with self.ACLChecksDisabled(): self.CreateFileWithTimeline( "aff4:/C.0000000000000001/fs/os/c/proc/changed.txt") self.CreateFileWithTimeline( "aff4:/C.0000000000000001/fs/os/c/proc/other.txt") self.RequestAndGrantClientApproval("C.0000000000000001") self.canary_override = test_lib.CanaryModeOverrider( self.token, target_canary_mode=True) self.canary_override.Start()