def test_multiplicative_converter(self): c = ScaleConverter(20.0) self.assertTrue(c.is_multiplicative) self.assertFalse(c.is_logarithmic) self.assertEqual(c.from_reference(c.to_reference(100)), 100) self.assertEqual(c.to_reference(c.from_reference(100)), 100)
def test_multiplicative_converter(self): c = ScaleConverter(20.) self.assertEqual(c.from_reference(c.to_reference(100)), 100) self.assertEqual(c.to_reference(c.from_reference(100)), 100)
def test_multiplicative_converter(self): c = ScaleConverter(20.0) assert c.is_multiplicative assert not c.is_logarithmic assert c.from_reference(c.to_reference(100)) == 100 assert c.to_reference(c.from_reference(100)) == 100