'Perform the supplied action and then verify the resulting ordering.'

def do_action_and_verify(self, action, expected_ordering):

    container = self.go_to_nested_container_page()
    action(container)
    verify_ordering(self, container, expected_ordering)
    container = self.go_to_nested_container_page()
    verify_ordering(self, container, expected_ordering)
