@contextmanager<EOL><INDENT>def assert_difference(self, func, difference):<DEDENT>
before = func()<EOL>yield<EOL>after = func()<EOL>self.assertEqual(before + difference, after)<EOL>
Context manager which asserts that the given function returns values
        which differ by the given amount before and after the yield block.