Exemplo n.º 1
0
 def test_xlist_shuffle(self):
     xl = XList([1, 2, 3], {'first_attr': 1})
     nl = xl.random_sample(2)
Exemplo n.º 2
0
 def test_xlist_shuffle(self):
     xl = XList([1 , 2, 3], {'first_attr': 1})
     nl = xl.random_sample(2)
Exemplo n.º 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)
Exemplo n.º 4
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)