Commit Graph

4 Commits

Author SHA1 Message Date
Joey Hain
47e95486f0 Reuse and improve ergonomics of assert_raises utility
- Move assert_raises to testutils
- Add optional message argument, with reasonable default
- Reverse order of expr and exception type for readability
- Lambda argument no longer takes parameter
- Convert applicable snippets to use assert_raises
2019-02-16 09:32:42 -08:00
Daniel Watkins
67b7cc2e45 Expand function snippet tests for kwargs 2018-08-31 16:00:09 -04:00
Daniel Watkins
003f99c70d Fix assertion messages in func_defaults snippet 2018-08-31 15:57:09 -04:00
Daniel Watkins
51e2db6097 Add snippet to test default arguments 2018-08-29 08:58:20 -04:00