Source code for tests.test_placeholder

"""Placeholder testing module"""
import unittest


[docs] class TestStringMethods(unittest.TestCase): """Placeholder testing class"""
[docs] def test_upper(self): self.assertEqual('foo'.upper(), 'FOO')
[docs] def test_isupper(self): self.assertTrue('FOO'.isupper()) self.assertFalse('Foo'.isupper())
[docs] 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()