コード例 #1
0
ファイル: test_strutils.py プロジェクト: toconn/Python3-Core
 def test_strip_text_no_whitespace(self):
     
     result = strutils.strip('abcd')
     self.assertEquals(result, 'abcd', 'Expected no change.')
コード例 #2
0
ファイル: test_strutils.py プロジェクト: toconn/Python3-Core
 def test_strip_text_has_whitespace(self):
     
     result = strutils.strip('    abcd  \t\n ')
     self.assertEquals(result, 'abcd')
コード例 #3
0
ファイル: test_strutils.py プロジェクト: toconn/Python3-Core
 def test_strip_none(self):
     
     result = strutils.strip(None)
     self.assertIsNone(result, 'Expected None.')
コード例 #4
0
    def test_strip_text_no_whitespace(self):

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

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

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