Remove obsolette unittest case
Signed-off-by: Václav Valíček <valicek1994@gmail.com>
This commit is contained in:
parent
9fffa6bb83
commit
b31b2e199b
|
@ -1,24 +0,0 @@
|
||||||
import unittest
|
|
||||||
|
|
||||||
|
|
||||||
class TestStringMethods(unittest.TestCase):
|
|
||||||
|
|
||||||
def test_upper(self):
|
|
||||||
self.assertEqual('foo'.upper(), 'FOO')
|
|
||||||
|
|
||||||
def test_isupper(self):
|
|
||||||
self.assertTrue('FOO'.isupper())
|
|
||||||
self.assertFalse('Foo'.isupper())
|
|
||||||
|
|
||||||
def test_split(self):
|
|
||||||
s = 'hello world'
|
|
||||||
self.assertEqual(s.split(), ['hello', 'world'])
|
|
||||||
# check that s.split fails when the separator is not a string
|
|
||||||
with self.assertRaises(TypeError):
|
|
||||||
s.split(2)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
unittest.main()
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user