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

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

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

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