Lines Matching refs:tp
28 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)
61 for tp in self._types:
62 b = tp(self._source)
83 tp = self.rw_type
87 m[0] = tp(b"0")
88 self._check_contents(tp, b, b"0bcdef")
89 m[1:3] = tp(b"12")
90 self._check_contents(tp, b, b"012def")
91 m[1:1] = tp(b"")
92 self._check_contents(tp, b, b"012def")
93 m[:] = tp(b"abcdef")
94 self._check_contents(tp, b, b"abcdef")
98 self._check_contents(tp, b, b"cdedef")
99 m[:] = tp(b"abcdef")
101 self._check_contents(tp, b, b"ababcf")
104 m[key] = tp(value)
124 for tp in self._types:
125 b = tp(self._source)
133 for tp in self._types:
134 m = self._view(tp(self._source))
143 for tp in self._types:
144 m = self._view(tp(self._source))
151 for tp in self._types:
152 m = self._view(tp(self._source))
174 def check_attributes_with_type(self, tp): argument
175 m = self._view(tp(self._source))
214 for tp in self._types:
215 if not isinstance(tp, type):
219 class MySource(tp):
225 b = MySource(tp(b'abc'))
239 tp = self.ro_type
240 if tp is None:
242 b = tp(self._source)
284 def _check_contents(self, tp, obj, contents): argument
285 self.assertEqual(obj, tp(contents))
294 def _check_contents(self, tp, obj, contents): argument
295 self.assertEqual(obj[1:7], tp(contents))
298 for tp in self._types:
299 m = memoryview(tp(self._source))
311 def _check_contents(self, tp, obj, contents): argument
312 self.assertEqual(obj[1:7], tp(contents))
321 for tp in self._types:
322 ob = tp(self._source)