def testJouleValue1_0(self): """Physical quantities with unit Joule are indicated by 'J'.""" result = FMFLoader.item2value( self.inputDict['Joule'], FMFversion='1.0' ) self.assertEqual(result, (Quantity(self.inputDict['Joule']), None))
def testComplexValue(self): """Imaginary numbers are indicated by 'j'.""" result = FMFLoader.item2value(self.inputDict['complexJ']) self.assertEqual(result, (complex(self.inputDict['complexJ']), None))