(self)
| 1204 | self.assertTrue(op(None, None), "Should return True") |
| 1205 | |
| 1206 | def test_inside(self): |
| 1207 | op = operators.get_operator("inside") |
| 1208 | self.assertFalse(op("a", None), "Should return False") |
| 1209 | self.assertFalse(op("a", "bcd"), "Should return False") |
| 1210 | self.assertTrue(op("a", "abc"), "Should return True") |
| 1211 | |
| 1212 | # Mixing bytes and strings / unicode should still work |
| 1213 | self.assertTrue(op(b"a", "abc"), "Should return True") |
| 1214 | self.assertTrue(op("a", b"abc"), "Should return True") |
| 1215 | self.assertTrue(op(b"a", b"abc"), "Should return True") |
| 1216 | |
| 1217 | def test_ninside(self): |
| 1218 | op = operators.get_operator("ninside") |
nothing calls this directly
no outgoing calls
no test coverage detected