Esempio n. 1
0
 def test_strip_text_no_whitespace(self):
     
     result = strutils.strip('abcd')
     self.assertEquals(result, 'abcd', 'Expected no change.')
Esempio n. 2
0
 def test_strip_text_has_whitespace(self):
     
     result = strutils.strip('    abcd  \t\n ')
     self.assertEquals(result, 'abcd')
Esempio n. 3
0
 def test_strip_none(self):
     
     result = strutils.strip(None)
     self.assertIsNone(result, 'Expected None.')
Esempio n. 4
0
    def test_strip_text_no_whitespace(self):

        result = strutils.strip('abcd')
        self.assertEquals(result, 'abcd', 'Expected no change.')
Esempio n. 5
0
    def test_strip_text_has_whitespace(self):

        result = strutils.strip('    abcd  \t\n ')
        self.assertEquals(result, 'abcd')
Esempio n. 6
0
    def test_strip_none(self):

        result = strutils.strip(None)
        self.assertIsNone(result, 'Expected None.')