(self)
| 1983 | self.validate_abstract_methods(Buffer, '__buffer__') |
| 1984 | |
| 1985 | def test_MutableSequence(self): |
| 1986 | for sample in [tuple, str, bytes]: |
| 1987 | self.assertNotIsInstance(sample(), MutableSequence) |
| 1988 | self.assertNotIsSubclass(sample, MutableSequence) |
| 1989 | for sample in [list, bytearray, deque]: |
| 1990 | self.assertIsInstance(sample(), MutableSequence) |
| 1991 | self.assertIsSubclass(sample, MutableSequence) |
| 1992 | self.assertIsSubclass(array.array, MutableSequence) |
| 1993 | self.assertNotIsSubclass(str, MutableSequence) |
| 1994 | self.validate_abstract_methods(MutableSequence, '__len__', '__getitem__', |
| 1995 | '__setitem__', '__delitem__', 'insert') |
| 1996 | |
| 1997 | def test_MutableSequence_mixins(self): |
| 1998 | # Test the mixins of MutableSequence by creating a minimal concrete |
nothing calls this directly
no test coverage detected