def testStartScheduledFlowsSucceedsWithoutScheduledFlows(self): client_id = self.SetupClient(0) username = self.SetupUser("u0") flow.StartScheduledFlows(client_id, username)
def testStartScheduledFlowsFailsForUnknownClient(self): self.SetupClient(0) username = self.SetupUser("u0") with self.assertRaises(db.UnknownClientError): flow.StartScheduledFlows("C.1234123412341234", username)
def testStartScheduledFlowsFailsForUnknownUser(self): client_id = self.SetupClient(0) self.SetupUser("u0") with self.assertRaises(db.UnknownGRRUserError): flow.StartScheduledFlows(client_id, "nonexistent")