Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_cannot_construct(self):
self.assertIsInstance(Uint8MemoryView(0), Uint8MemoryView)
def test_memory_view(self):
self.assertIsInstance(Instance(TEST_BYTES).uint8_memory_view(), Uint8MemoryView)
def test_is_a_class(self):
self.assertTrue(inspect.isclass(Uint8MemoryView))
self.assertTrue(inspect.isclass(Int8MemoryView))
self.assertTrue(inspect.isclass(Uint16MemoryView))
self.assertTrue(inspect.isclass(Int16MemoryView))
self.assertTrue(inspect.isclass(Uint32MemoryView))
self.assertTrue(inspect.isclass(Int32MemoryView))