コード例 #1
0
ファイル: test_text.py プロジェクト: ling-1/GETAiqiyiDanmu
 def test_dict(self):
     """
     Dicts elements are displayed using C{str()}.
     """
     s = {"a": 0}
     m = text.stringyString(s)
     self.assertEqual(m, "{a: 0}")
コード例 #2
0
ファイル: test_text.py プロジェクト: ling-1/GETAiqiyiDanmu
 def test_list(self):
     """
     List elements are displayed on separate lines using C{str()}.
     """
     s = ["a", "b"]
     m = text.stringyString(s)
     self.assertEqual(m, "[a,\n b,]\n")
コード例 #3
0
ファイル: test_text.py プロジェクト: ling-1/GETAiqiyiDanmu
 def test_tuple(self):
     """
     Tuple elements are displayed on separate lines.
     """
     s = ("a", "b")
     m = text.stringyString(s)
     self.assertEqual(m, "(a,\n b,)\n")
コード例 #4
0
 def test_tuple(self):
     """
     Tuple elements are displayed on separate lines.
     """
     s = ('a', 'b')
     m = text.stringyString(s)
     self.assertEqual(m, '(a,\n b,)\n')
コード例 #5
0
ファイル: test_text.py プロジェクト: 0004c/VTK
 def test_list(self):
     """
     List elements are displayed on separate lines using C{str()}.
     """
     s = ['a', 'b']
     m = text.stringyString(s)
     self.assertEqual(m, '[a,\n b,]\n')
コード例 #6
0
ファイル: test_text.py プロジェクト: 0004c/VTK
 def test_dict(self):
     """
     Dicts elements are displayed using C{str()}.
     """
     s = {'a': 0}
     m = text.stringyString(s)
     self.assertEqual(m, '{a: 0}')
コード例 #7
0
ファイル: test_text.py プロジェクト: 0004c/VTK
 def test_tuple(self):
     """
     Tuple elements are displayed on separate lines.
     """
     s = ('a', 'b')
     m = text.stringyString(s)
     self.assertEqual(m, '(a,\n b,)\n')