'Tests that millisecond resolution is preserved when saving datetime objects'

@execute_count(3)
def test_datetime_precision(self):

    now = datetime.now()
    pk = 1000
    obj = DateTimeQueryTestModel.create(user=pk, day=now, data='energy    cheese')
    load = DateTimeQueryTestModel.get(user=pk)
    self.assertAlmostEqual(get_total_seconds((now - load.day)), 0, 2)
    obj.delete()
