Example #1
0
class ClienteTestCase(TestCase):
    
    cliente = None
    
    def setUp(self):
        self.cliente = ClienteFactory(password='******')
        
    def test_crear_nueva_cuenta_cliente(self):
        self.assertEqual(self.cliente, Cliente.objects.get(ci = self.cliente.ci))
    
    def test_verificar_contrasena(self):
        self.assertTrue(self.cliente.verificar_contrasena('123456'))
Example #2
0
 def setUp(self):
     self.cliente = ClienteFactory(password='******')