• Home
  • Raw
  • Download

Lines Matching refs:tp

29     def check_getitem_with_type(self, tp):  argument
31 b = tp(self._source)
52 for tp in self._types:
53 self.check_getitem_with_type(tp)
56 for tp in self._types:
57 b = tp(self._source)
62 for tp in self._types:
63 b = tp(self._source)
84 tp = self.rw_type
88 m[0] = tp(b"0")
89 self._check_contents(tp, b, b"0bcdef")
90 m[1:3] = tp(b"12")
91 self._check_contents(tp, b, b"012def")
92 m[1:1] = tp(b"")
93 self._check_contents(tp, b, b"012def")
94 m[:] = tp(b"abcdef")
95 self._check_contents(tp, b, b"abcdef")
99 self._check_contents(tp, b, b"cdedef")
100 m[:] = tp(b"abcdef")
102 self._check_contents(tp, b, b"ababcf")
105 m[key] = tp(value)
125 for tp in self._types:
126 b = tp(self._source)
134 for tp in self._types:
135 m = self._view(tp(self._source))
144 for tp in self._types:
145 m = self._view(tp(self._source))
152 for tp in self._types:
153 m = self._view(tp(self._source))
175 def check_attributes_with_type(self, tp): argument
176 m = self._view(tp(self._source))
215 for tp in self._types:
216 if not isinstance(tp, type):
220 class MySource(tp):
226 b = MySource(tp(b'abc'))
240 tp = self.ro_type
241 if tp is None:
243 b = tp(self._source)
285 def _check_contents(self, tp, obj, contents): argument
286 self.assertEqual(obj, tp(contents))
295 def _check_contents(self, tp, obj, contents): argument
296 self.assertEqual(obj[1:7], tp(contents))
299 for tp in self._types:
300 m = memoryview(tp(self._source))
312 def _check_contents(self, tp, obj, contents): argument
313 self.assertEqual(obj[1:7], tp(contents))
322 for tp in self._types:
323 ob = tp(self._source)