def test_time_string_fidelity(self):
        it1 = IonTime()
        ntp_str = it1.to_string()
        it2 = IonTime.from_string(ntp_str)
        
        self.assertEquals(it1.seconds,it2.seconds)
        self.assertTrue(np.abs(it1.useconds - it2.useconds) <= 1)
dataset/ETHPy150Open ooici/pyon/pyon/util/test/test_ion_time.py/IonTimeUnitTest.test_time_string_fidelity/original