def test_blocks_to_seconds():
    import parkinglib
    from decimal import Decimal
    precision = Decimal('0.001')
    assert (Decimal(parkinglib.blocks_to_seconds(0)) == Decimal(0.0))
    assert (Decimal(parkinglib.blocks_to_seconds(2)).quantize(precision) == Decimal(314.4).quantize(precision))
    assert (int(parkinglib.blocks_to_seconds(16616)) == 2612035)
def test_blocks_to_seconds():
    import parkinglib
    from decimal import Decimal
    precision = Decimal('0.001')
    assert (Decimal(parkinglib.blocks_to_seconds(0)) == Decimal(0.0))
    assert (Decimal(parkinglib.blocks_to_seconds(2)).quantize(precision) == Decimal(314.4).quantize(precision))
    assert (int(parkinglib.blocks_to_seconds(16616)) == 2612035)