

def test_fields(self):
    t = time.gmtime()
    self.assertEqual(len(t), t.n_sequence_fields)
    self.assertEqual(t.n_unnamed_fields, 0)
    self.assertEqual(t.n_fields, time._STRUCT_TM_ITEMS)

dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_structseq.py StructSeqTest.test_fields/original