code: def testTriads(self):
      # @note: this test is not exhaustive, it only checks whether the
      # L{TriadCensus} objects "understand" attribute and item accessors
      tc = self.g.triad_census()
      accessors = ["003", "012", "021d", "030C"]
      for a in accessors:
          self.assertTrue(isinstance(getattr(tc, "t" + a), int))
          self.assertTrue(isinstance(tc[a], int))
      self.assertTrue(isinstance(list(tc), list))
      self.assertTrue(isinstance(tuple(tc), tuple))
      self.assertTrue(len(list(tc)) == 16)
      self.assertTrue(len(tuple(tc)) == 16)
  
file_path: python-igraph/tests/test_motifs.py
imports: import unittest
  from igraph import Graph
label_desc: Use image node_id 3 for calling the MotifTests obj's underlying member method code with example usage: obj.testTriads() without return types