@mock_native_all_users('json_data_to_return')
def test_list_users(self):
    result = list_users()
self.assertEqual(result, 'expected_result')
Pythonic way of replacing real return values and implementation of functions with mock ones