def test_savart_converter(self): inter = 4/3. inter_sav = log10(inter)*1000 self.assertEqual(inter_sav, di.savart(inter))
def test_savart_converter(self): inter = 4 / 3. inter_sav = log10(inter) * 1000 self.assertEqual(inter_sav, di.savart(inter))
def test_dias_following_unit(self): global unit di.set_unit("savart") self.assertEqual(di.dias(3/2.),di.savart(3/2.)) di.set_unit("cent") self.assertEqual(di.dias(3/2.),di.cent(3/2.))
def test_dias_following_unit(self): global unit di.set_unit("savart") self.assertEqual(di.dias(3 / 2.), di.savart(3 / 2.)) di.set_unit("cent") self.assertEqual(di.dias(3 / 2.), di.cent(3 / 2.))