commit | 5c3151c308aec2178ec516ae074f07a4fb18a619 | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Thu Jan 03 17:15:41 2013 -0800 |
committer | Rich Lane <rich.lane@bigswitch.com> | Thu Jan 03 18:03:45 2013 -0800 |
tree | d5236bb64ae0a77f1954779467683a0ecbd5198c | |
parent | e30455b947669e3dd9adc9f2e591a0c5f3b97d7f [diff] |
throw AssertionError if controller.message_send fails Unlike other types of exception an AssertionError will cause the test to "fail" instead of "error". Using an exception instead of checking return values removes a lot of boilerplate code that wasn't always present (or correct). It may also help disabuse test writers of the dangerous notion that succeeding in writing a message to the TCP socket means anything.