(self)
| 48 | |
| 49 | class YearLookupTests(SimpleTestCase): |
| 50 | def test_get_bound_params(self): |
| 51 | look_up = YearLookup( |
| 52 | lhs=Value(datetime(2010, 1, 1, 0, 0, 0), output_field=DateTimeField()), |
| 53 | rhs=Value(datetime(2010, 1, 1, 23, 59, 59), output_field=DateTimeField()), |
| 54 | ) |
| 55 | msg = "subclasses of YearLookup must provide a get_bound_params() method" |
| 56 | with self.assertRaisesMessage(NotImplementedError, msg): |
| 57 | look_up.get_bound_params( |
| 58 | datetime(2010, 1, 1, 0, 0, 0), datetime(2010, 1, 1, 23, 59, 59) |
| 59 | ) |
nothing calls this directly
no test coverage detected