示例#1
0
 def test_04_no_contiene_espacios(self):
     from correo import my_email
     email = my_email()
     self.assertFalse(' ' in email)
     self.assertFalse('\t' in email)
     self.assertFalse('\n' in email)
     self.assertFalse('\r' in email)
示例#2
0
 def test_01_devuelve_una_cadena(self):
     from correo import my_email
     self.assertEqual(str, type(my_email()))
示例#3
0
 def test_03_es_direccion_de_alumno(self):
     from correo import my_email
     self.assertTrue(my_email().endswith('@alu.uclm.es'))
示例#4
0
 def test_02_contiene_una_arroba(self):
     from correo import my_email
     self.assertEqual(1, my_email().count('@'))