All challenges
Multiple ChoiceIntermediate 30s

Mock Return Value

Choose the best answer for: mock return_value
Options
  1. 1return_value is used to replace real function objects
  2. 2return_value sets the name of the mock object
  3. 3return_value is a method that resets the mock
  4. 4mock.return_value = X sets what the mock call returns

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle