Remove a method call which depends on IPython.

Because IPython is not part of edx-platform dependencies, the
method assert_in has to be defined.