Home
last modified time | relevance | path

Searched refs:mock_generator (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_with.py203 def assertInWithGeneratorInvariants(self, mock_generator): argument
204 self.assertTrue(mock_generator.yielded)
205 self.assertFalse(mock_generator.stopped)
207 def assertAfterWithGeneratorInvariantsNoError(self, mock_generator): argument
208 self.assertTrue(mock_generator.yielded)
209 self.assertTrue(mock_generator.stopped)
226 def assertAfterWithGeneratorInvariantsWithError(self, mock_generator): argument
227 self.assertTrue(mock_generator.yielded)
228 self.assertTrue(mock_generator.stopped)
/external/python/cpython3/Lib/test/
Dtest_with.py208 def assertInWithGeneratorInvariants(self, mock_generator): argument
209 self.assertTrue(mock_generator.yielded)
210 self.assertFalse(mock_generator.stopped)
212 def assertAfterWithGeneratorInvariantsNoError(self, mock_generator): argument
213 self.assertTrue(mock_generator.yielded)
214 self.assertTrue(mock_generator.stopped)
231 def assertAfterWithGeneratorInvariantsWithError(self, mock_generator): argument
232 self.assertTrue(mock_generator.yielded)
233 self.assertTrue(mock_generator.stopped)