Make assertion failure message more understandable

This commit is contained in:
David Baumgold
2013-07-23 12:55:58 -04:00
parent 724ef2e1e5
commit 97a02d415f

View File

@@ -16,7 +16,11 @@ def create_component_instance(step, component_button_css, category,
if has_multiple_templates:
click_component_from_menu(category, boilerplate, expected_css)
assert_equal(1, len(world.css_find(expected_css)))
assert_equal(
1,
len(world.css_find(expected_css)),
"Component instance with css {css} was not created successfully".format(css=expected_css))
@world.absorb
def click_new_component_button(step, component_button_css):