Inlining _assert_called