Regression test for #18051
(self)
| 492 | self.assertEqual(flatten(orig), expected) |
| 493 | |
| 494 | def test_flatten_fieldsets(self): |
| 495 | """ |
| 496 | Regression test for #18051 |
| 497 | """ |
| 498 | fieldsets = ((None, {"fields": ("url", "title", ("content", "sites"))}),) |
| 499 | self.assertEqual( |
| 500 | flatten_fieldsets(fieldsets), ["url", "title", "content", "sites"] |
| 501 | ) |
| 502 | |
| 503 | fieldsets = ((None, {"fields": ("url", "title", ["content", "sites"])}),) |
| 504 | self.assertEqual( |
| 505 | flatten_fieldsets(fieldsets), ["url", "title", "content", "sites"] |
| 506 | ) |
| 507 | |
| 508 | def test_quote(self): |
| 509 | self.assertEqual(quote("something\nor\nother"), "something_0Aor_0Aother") |
nothing calls this directly
no test coverage detected