Example #1
0
 def test_manual_validate_fail(self):
     member = PortalMember(
         validate=False, name='rick', displayName='Somersault jump',
         allowCallDirect='Get Schwifty!', # must be bool
         password='******', extension=123, emailAddress='test@localhost'
     )
     with self.assertRaises(ValueError):
         member.validate()
Example #2
0
 def test_manual_validate_success(self):
     member = PortalMember(
         validate=False, name='rick',
         displayName='Somersault jump', password='******',
         extension=123, emailAddress='test@localhost'
     )
     with self.assertRaises(ValueError):
         member.validate()