コード例 #1
0
 def spec(world):
     result = world.failing_example.run(MockExampleGroup(), mock_world_factory)
     io = StringIO()
     pf = ProgressFormatter(io)
     pf.summarise_failures([(world.failing_example, result)])
     assert io.getvalue() != '' # there must be a better test than this which isn't terrifyingly brittle