def home(): respuesta='' if request.method == 'POST': respuesta = SubPalindroma(request.form['cadena']) return render_template("index.html", respuesta={'cadena':respuesta})
def test_SubcadenaPalindroa_Pasa(self): self.assertEqual(SubPalindroma('irerq'), 'rer')
def test_SubcadenaPalindroa_7Pasa(self): self.assertNotEqual(SubPalindroma('aAaaa'), 'aaa')
def test_SubcadenaPalindroa_6Pasa(self): self.assertNotEqual(SubPalindroma('Aa'), 'a')
def test_SubcadenaPalindroa_5Pasa(self): self.assertNotEqual(SubPalindroma('aA'), 'A')
def test_SubcadenaPalindroa_4NoPasa(self): self.assertNotEqual(SubPalindroma('qwer1235321fr'), '0')
def test_SubcadenaPalindroa_3Pasa(self): self.assertEqual(SubPalindroma('qwer1235321fr'), 'r1235321r')
def test_SubcadenaPalindroa_2Pasa(self): self.assertEqual(SubPalindroma('47ana ojo ana f47'), '4ana ojo ana4')