コード例 #1
0
 def test_xlist_shuffle(self):
     xl = XList([1, 2, 3], {'first_attr': 1})
     nl = xl.random_sample(2)
コード例 #2
0
ファイル: test_TYPES_c.py プロジェクト: chrisidefix/naked
 def test_xlist_shuffle(self):
     xl = XList([1 , 2, 3], {'first_attr': 1})
     nl = xl.random_sample(2)
コード例 #3
0
 def test_xlist_random_sample_noexception(self):
     xl = XList([1, 2, 3], {'first_attr': 1})
     nl = xl.random_sample(2)
     self.assertTrue(len(nl) == 2)
コード例 #4
0
ファイル: test_TYPES_c.py プロジェクト: chrisidefix/naked
 def test_xlist_random_sample_noexception(self):
     xl = XList([1 , 2, 3], {'first_attr': 1})
     nl = xl.random_sample(2)
     self.assertTrue(len(nl) == 2)