Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
 def testComplexValue(self):
     """Imaginary numbers are indicated by 'j'."""
     result = FMFLoader.item2value(self.inputDict['complexJ'])
     self.assertEqual(result, (complex(self.inputDict['complexJ']), None))