Пример #1
0
 def test_mountain(self):
     self.assertFalse(is_palindrome('mountain'))
Пример #2
0
 def test_a(self):
     self.assertTrue(is_palindrome('a'))
Пример #3
0
 def test_abcddcba(self):
     self.assertTrue(is_palindrome('abcddcba'))
Пример #4
0
def test_captain():
    assert_false(is_palindrome('captain'))
Пример #5
0
 def test_empty(self):
     self.assertTrue(is_palindrome(''))
Пример #6
0
def test_b():
    assert_true(is_palindrome('b'))
Пример #7
0
def test_racecar():
    assert_true(is_palindrome('racecar'))
Пример #8
0
 def test_mountain(self):
     self.assertFalse(is_palindrome('mountain'))
Пример #9
0
def test_empty_string():
    assert_true(is_palindrome(''))
Пример #10
0
 def test_a(self):
     self.assertTrue(is_palindrome('a'))
Пример #11
0
 def test_abcddcba(self):
     self.assertTrue(is_palindrome('abcddcba'))
Пример #12
0
 def test_empty(self):
     self.assertTrue(is_palindrome(''))
Пример #13
0
def test_captain():
    assert_false(is_palindrome('captain'))
Пример #14
0
def test_racecar():
    assert_true(is_palindrome('racecar'))
Пример #15
0
def test_b():
    assert_true(is_palindrome('b'))
Пример #16
0
def test_empty_string():
    assert_true(is_palindrome(''))