def METHOD_NAME(self):
    old = sys.stdout
    sys.stdout = HTMLStringO()
    try:
        dump([1, 2, 3])
        x = sys.stdout.reset()
        dump()
        y = sys.stdout.reset()
    finally:
        sys.stdout = old
    self.assert_in('Details for list object at', x)
    self.assert_in('<span class="number">1</span>', x)
    self.assert_in('Local variables in frame', y)
    self.assert_in('<th>x', y)
    self.assert_in('<th>old', y)