Esempio n. 1
0
 def is_slice(self):
     for ip_i, (ip_v, ip_indices) in self._ips.items():
         ip = IndexPicker(ip_i)
         self.assertEqual(ip.is_slice(), isinstance(ip_v, slice))
Esempio n. 2
0
 def get_indices(self):
     for ip_i, (ip_v, ip_indices) in self._ips.items():
         ip = IndexPicker(ip_i)
         self.assertEqual(ip.get_indices(5), ip_indices)
Esempio n. 3
0
 def constructor(self):
     for ip_i, (ip_v, ip_indices) in self._ips.items():
         ip = IndexPicker(ip_i)
         ip_value = ip.value()
         self.assertEqual(ip_value, ip_v)
Esempio n. 4
0
 def is_slice(self):
     for ip_i, (ip_v, ip_indices) in self._ips.items():
         ip = IndexPicker(ip_i)
         self.assertEqual(ip.is_slice(), isinstance(ip_v, slice))
Esempio n. 5
0
 def get_indices(self):
     for ip_i, (ip_v, ip_indices) in self._ips.items():
         ip = IndexPicker(ip_i)
         self.assertEqual(ip.get_indices(5), ip_indices)
Esempio n. 6
0
 def constructor(self):
     for ip_i, (ip_v, ip_indices) in self._ips.items():
         ip = IndexPicker(ip_i)
         ip_value = ip.value()
         self.assertEqual(ip_value, ip_v)