In [1]:
%install_ext https://raw.github.com/gist/4013594/runtests.py
Installed runtests.py. To use it, type:
  %load_ext runtests
In [2]:
%load_ext runtests
In [3]:
%runtests
Collected 0 tests.


Ran 0 tests in 9.54e-07 seconds.
ok = 0, fail = 0, error = 0
In [4]:
def test_true():
    assert 4 == 4

def test_fail():
    assert 4 == 2
In [5]:
%runtests
Collected 2 tests.

test_fail ...  fail
test_true ...  ok

Failures
========
test_fail: AssertionError()

Ran 2 tests in 8.7e-05 seconds.
ok = 1, fail = 1, error = 0
In [5]: