Exemple #1
0
 def test_mandatory_exception(self):
     """Raise an error when the content is empty"""
     try:
         tra = ExportTra()
         tra._mandatory('', 10)
         pytest.fail('An empty content mandatory must raise and error')
     except MandatoryException:
         pass
Exemple #2
0
 def test_mandatory_exception(self):
     """Raise an error when the content is empty"""
     try:
         tra = ExportTra()
         tra._mandatory('', 10)
         pytest.fail('An empty content mandatory must raise and error')
     except MandatoryException:
         pass
Exemple #3
0
 def test_mandatory_standard(self):
     tra = ExportTra()
     content = tra._mandatory('OK', 10)
     assert len(content) == 10
Exemple #4
0
 def test_mandatory_standard(self):
     tra = ExportTra()
     content = tra._mandatory('OK', 10)
     assert len(content) == 10