()
| 85 | |
| 86 | |
| 87 | def test_pop_not_found(): |
| 88 | likes = pm.eval('({"color": "blue", "fruit": "apple", "pet": "dog"})') |
| 89 | try: |
| 90 | likes.pop('colo') |
| 91 | assert (False) |
| 92 | except Exception as e: |
| 93 | assert str(type(e)) == "<class 'KeyError'>" |
| 94 | assert str(e) == "'colo'" |
| 95 | |
| 96 | |
| 97 | def test_pop_twice_not_found(): |
nothing calls this directly
no outgoing calls
no test coverage detected