How to use django.test.TestCase assertAlmostEqual() to evaluate two decimal.Decimal objects

Solution for How to use django.test.TestCase assertAlmostEqual() to evaluate two decimal.Decimal objects
is Given Below:

How should I use self.assertAlmostEqual() in django’s testing module for two decimal.Decimal objects? I run the following test and expect it test to pass, but instead I get an error:

self.assertAlmostEquals(Decimal(1.23456789E-10), Decimal(1.23456789), places=4)

Instead I get the following error:

AssertionError: Decimal('1.23456789E-10') != Decimal('1.2345678899999998900938180668163113296031951904296875') within 4 places (Decimal('1.234567889876543101093818067') difference)