def test_scinotation(self): """Does the scientific notation writer work as expected?""" self.assertEqual(volume.scinotation(1. / 654), ' 1.52905E-03') self.assertEqual(volume.scinotation(-1. / 654), '-1.52905E-03')
def test_scinotation(self): """Does the scientific notation writer work as expected?""" self.assertEquals(volume.scinotation(1./654), ' 1.52905E-03') self.assertEquals(volume.scinotation(-1./654), '-1.52905E-03')