Пример #1
0
 def test_email_setter_1(self):
     user = Customer()
     user.setEmail(validEmail1)
     correctValue = validEmail1
     self.assertEqual(
         user.getEmail(),
         correctValue,
         msg=
         f"Error in the email setter and getter values:\n\n{user.getEmail()}\n\n{correctValue}"
     )
Пример #2
0
 def test_invalid_email_setter_1(self):
     with self.assertRaises(
             ValueError,
             msg="Values passed should have raised a Value Error"):
         user = Customer()
         user.setEmail(invalidEmail1)