def test___array_struct___property(self): kwds = self.view_keywords v = BufferProxy(kwds) d = pygame.get_array_interface(v) self.assertEqual(len(d), 5) self.assertEqual(d["version"], 3) self.assertEqual(d["shape"], kwds["shape"]) self.assertEqual(d["typestr"], kwds["typestr"]) self.assertEqual(d["data"], kwds["data"]) self.assertEqual(d["strides"], kwds["strides"])
def test___array_struct___property(self): kwds = self.view_keywords v = BufferProxy(kwds) d = pygame.get_array_interface(v) self.assertEqual(len(d), 5) self.assertEqual(d['version'], 3) self.assertEqual(d['shape'], kwds['shape']) self.assertEqual(d['typestr'], kwds['typestr']) self.assertEqual(d['data'], kwds['data']) self.assertEqual(d['strides'], kwds['strides'])