コード例 #1
0
 def test_xlist_join_diffstring(self):
     xl = XList(['one', 'two', 'three'], {'first_attr': 1})
     mes = xl.join(',')
     self.assertEqual(mes, 'one,two,three')
コード例 #2
0
 def test_xlist_join_typeerror(self):
     xl = XList(['one', 'two', 'three'], {'first_attr': 1})
     with self.assertRaises(
             AttributeError):  # incorrect type raises attribute error
         mes = xl.join(1)
コード例 #3
0
 def test_xlist_join(self):
     xl = XList(['one', 'two', 'three'], {'first_attr': 1})
     mes = xl.join(" ")
     self.assertEqual(mes, 'one two three')
コード例 #4
0
ファイル: test_TYPES_c.py プロジェクト: chrisidefix/naked
 def test_xlist_join_diffstring(self):
     xl = XList(['one', 'two', 'three'], {'first_attr': 1})
     mes = xl.join(',')
     self.assertEqual(mes, 'one,two,three')
コード例 #5
0
ファイル: test_TYPES_c.py プロジェクト: chrisidefix/naked
 def test_xlist_join_typeerror(self):
     xl = XList(['one', 'two', 'three'], {'first_attr': 1})
     with self.assertRaises(AttributeError): # incorrect type raises attribute error
         mes = xl.join(1)
コード例 #6
0
ファイル: test_TYPES_c.py プロジェクト: chrisidefix/naked
 def test_xlist_join(self):
     xl = XList(['one', 'two', 'three'], {'first_attr': 1})
     mes = xl.join(" ")
     self.assertEqual(mes, 'one two three')