def test_time_tuple(self):
     timestamp = pmt.pmt_make_tuple(pmt.pmt_from_uint64(123), pmt.pmt_from_double(0.123))
     ts = pmt.to_python(timestamp)
     self.assertTrue(isinstance(ts[0], long));
     self.assertTrue(isinstance(ts[1], float));
Exemple #2
0
def pmt_from_tuple(p):
    args = map(python_to_pmt, p)
    return pmt.pmt_make_tuple(*args)
 def test_time_tuple(self):
     timestamp = pmt.pmt_make_tuple(pmt.pmt_from_uint64(123),
                                    pmt.pmt_from_double(0.123))
     ts = pmt.to_python(timestamp)
     self.assertTrue(isinstance(ts[0], long))
     self.assertTrue(isinstance(ts[1], float))
Exemple #4
0
def pmt_from_tuple(p):
    args = map(python_to_pmt, p)
    return pmt.pmt_make_tuple(*args)