def test_n(self): password = create_password(self.length, True, False, False, False) self.assertTrue(password.isdigit())
def test_u(self): password = create_password(self.length, False, True, False, True) self.assertTrue(password.isalpha() and any([x.isupper() for x in password]))
def test_s(self): password = create_password(self.length, False, False, True, False) self.assertFalse(password.isalnum())
def test_l(self): password = create_password(self.length, False, True, False, False) self.assertTrue(password.isalpha())