(self)
| 234 | "supports_table_check_constraints", "can_introspect_check_constraints" |
| 235 | ) |
| 236 | def test_name(self): |
| 237 | constraints = get_constraints(Product._meta.db_table) |
| 238 | for expected_name in ( |
| 239 | "price_gt_discounted_price", |
| 240 | "constraints_product_price_gt_0", |
| 241 | ): |
| 242 | with self.subTest(expected_name): |
| 243 | self.assertIn(expected_name, constraints) |
| 244 | |
| 245 | @skipUnlessDBFeature( |
| 246 | "supports_table_check_constraints", "can_introspect_check_constraints" |
nothing calls this directly
no test coverage detected