Lines Matching refs:tp
29 def check_getitem_with_type(self, tp): argument
30 b = tp(self._source)
51 for tp in self._types:
52 self.check_getitem_with_type(tp)
55 for tp in self._types:
56 b = tp(self._source)
77 tp = self.rw_type
82 self._check_contents(tp, b, b"1bcdef")
83 m[0:1] = tp(b"0")
84 self._check_contents(tp, b, b"0bcdef")
85 m[1:3] = tp(b"12")
86 self._check_contents(tp, b, b"012def")
87 m[1:1] = tp(b"")
88 self._check_contents(tp, b, b"012def")
89 m[:] = tp(b"abcdef")
90 self._check_contents(tp, b, b"abcdef")
94 self._check_contents(tp, b, b"cdedef")
95 m[:] = tp(b"abcdef")
97 self._check_contents(tp, b, b"ababcf")
100 m[key] = tp(value)
127 for tp in self._types:
128 b = tp(self._source)
136 for tp in self._types:
137 m = self._view(tp(self._source))
146 for tp in self._types:
147 m = self._view(tp(self._source))
154 for tp in self._types:
155 m = self._view(tp(self._source))
181 def check_attributes_with_type(self, tp): argument
182 m = self._view(tp(self._source))
206 for tp in self._types:
207 b = tp(self._source)
212 self._check_contents(tp, b, s.encode("utf-8"))
218 for tp in self._types:
219 if not isinstance(tp, type):
226 class MySource(tp):
233 b = MySource(tp(b'abc'))
245 m = MyView(tp(b'abc'))
255 def _check_released(self, m, tp): argument
276 self.assertNotEqual(m, memoryview(tp(self._source)))
277 self.assertNotEqual(m, tp(self._source))
280 for tp in self._types:
281 b = tp(self._source)
285 self._check_released(m, tp)
292 for tp in self._types:
293 b = tp(self._source)
296 self._check_released(m, tp)
299 self._check_released(m, tp)
304 tp = self.ro_type
305 if tp is None:
307 b = tp(self._source)
318 tp = self.ro_type
319 if tp is None:
321 b = tp(self._source)
335 tp = self.rw_type
336 if tp is None:
338 b = tp(self._source)
344 for tp in self._types:
345 b = tp(self._source)
358 for tp in self._types:
359 b = tp(self._source)
366 for tp in self._types:
367 b = tp(self._source)
433 def _check_contents(self, tp, obj, contents): argument
434 self.assertEqual(obj, tp(contents))
443 def _check_contents(self, tp, obj, contents): argument
444 self.assertEqual(obj[1:7], tp(contents))
447 for tp in self._types:
448 m = memoryview(tp(self._source))
460 def _check_contents(self, tp, obj, contents): argument
461 self.assertEqual(obj[1:7], tp(contents))
470 for tp in self._types:
471 ob = tp(self._source)