def setType(self):
     a = DocumentFields()
     
     for t in DocumentFields.TYPES:
         a.setDocType(t)
         assert (a.getDocType() == t)
     
     a.setDocType(DocumentFields.OTHER)
     assert (a.getDocType() == DocumentFields.OTHER)
 def test_setType(self):
     a = DocumentFields()
     
     for t in DocumentFields.TYPES:
         a.setDocType(t)
         self.assertEqual(a.getDocType(), t)
     
     a.setDocType(DocumentFields.DOC_UNKNOWN)
     self.assertEqual(a.getDocType(), DocumentFields.DOC_UNKNOWN)
 def createEmpty(self):
     a = DocumentFields()
     assert (a.getNbFields() == 0)
     assert (a.getDocType() == DocumentFields.OTHER)
 def test_createEmpty(self):
     a = DocumentFields()
     assert (a.getNbFields() == 0)
     assert (a.getDocType() == DocumentFields.DOC_UNKNOWN)