Beispiel #1
0
 def test_turns_warning_name_into_words(self):
     assert_that(fallback_format("example_warning_name", {}),
                 equal_to("example warning name"))
Beispiel #2
0
 def test_appends_warning_parameters_in_parentheses(self):
     assert_that(fallback_format("another_warning", {"foo": "bar", "boz": 10}),
                 equal_to("another warning (boz: 10, foo: 'bar')"))