def testJouleValue1_0(self): """Physical quantities with unit Joule are indicated by 'J'.""" result = LoadFMF.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 = LoadFMF.item2value(self.inputDict["complexJ"]) self.assertEqual(result, (complex(self.inputDict["complexJ"]), None))
def testJouleValue1_0(self): """Physical quantities with unit Joule are indicated by 'J'.""" result = LoadFMF.item2value(self.inputDict['Joule'], FMFversion='1.0') self.assertEqual(result, (Quantity(self.inputDict['Joule']), None))
def testJouleValue1_1(self): """Physical quantities with unit Joule are indicated by 'J'.""" result = LoadFMF.item2value(self.inputDict['Joule']) self.assertEqual(result, (Quantity(self.inputDict['Joule']), None))
def testComplexValue(self): """Imaginary numbers are indicated by 'j'.""" result = LoadFMF.item2value(self.inputDict['complexJ']) self.assertEqual(result, (complex(self.inputDict['complexJ']), None))