code: def testPartialAttributeAssignment(self):
      only_even = self.g.es.select(lambda e: (e.index % 2 == 0))
  
      only_even["test"] = [0] * len(only_even)
      expected = [[0, i][i % 2] for i in range(self.g.ecount())]
      self.assertTrue(self.g.es["test"] == expected)
  
      only_even["test2"] = list(range(23))
      expected = [[i // 2, None][i % 2] for i in range(self.g.ecount())]
      self.assertTrue(self.g.es["test2"] == expected)
  
imports: import unittest
  from igraph import Graph, Edge, EdgeSeq, VertexSeq
  from .utils import is_pypy
label_desc: Use image node_id 6 for calling the EdgeSeqTests obj's underlying member method code with example usage: obj.testPartialAttributeAssignment() without return types