(self)
| 30 | |
| 31 | |
| 32 | def test_with_statement_as(self): |
| 33 | with patch('%s.something' % __name__) as mock_something: |
| 34 | self.assertEqual(something, mock_something, "unpatched") |
| 35 | self.assertTrue(is_instance(mock_something, MagicMock), |
| 36 | "patching wrong type") |
| 37 | self.assertEqual(something, sentinel.Something) |
| 38 | |
| 39 | |
| 40 | def test_patch_object_with_statement(self): |
nothing calls this directly
no test coverage detected