<reponame>gitter-badger/unicorn-binance-local-depth-cache<filename>unittest_binance_local_depth_cache.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# File: manager.py
#
# Part of ‘UNICORN Binance Local Depth Cache’
# Project website: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache
# Github: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache
# Documentation: https://unicorn-binance-local-depth-cache.docs.lucit.tech
# PyPI: https://pypi.org/project/unicorn-binance-local-depth-cache
#
# Author: LUCIT Systems and Development
#
# Copyright (c) 2022-2022, LUCIT Systems and Development (https://www.lucit.tech) and <NAME>
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis-
# tribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the fol-
# lowing conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

from unicorn_binance_local_depth_cache.manager import BinanceLocalDepthCacheManager, DepthCacheOutOfSync
import logging
import unittest
import os
import time

logging.getLogger("unicorn_binance_local_depth_cache")
logging.basicConfig(level=logging.DEBUG,
                    filename=os.path.basename(__file__) + '.log',
                    format="{asctime} [{levelname:8}] {process} {thread} {module}: {message}",
                    style="{")

print(f"Starting unittests:")

UBLDC = BinanceLocalDepthCacheManager(exchange="binance.com")
UBLDC_FUTURES = BinanceLocalDepthCacheManager(exchange="binance.com-futures")


class TestUbldc(unittest.TestCase):
    def setUp(self):
        self.ubldc = UBLDC
        self.ubldc_futures = UBLDC_FUTURES
        self.items = {'0.00204980': 39.05, '0.00204990': 1.63, '0.00205050': 158.68, '0.00205060': 81.97,
                      '0.00205080': 32.5, '0.00205090': 16.74, '0.00205100': 149.34, '0.00205110': 6.68,
                      '0.00205140': 16.77, '0.00205150': 50.0, '0.00205170': 17.1, '0.00205180': 20.04,
                      '0.00205190': 54.93, '0.00205200': 192.59, '0.00205210': 286.96, '0.00205220': 156.73,
                      '0.00205250': 231.43, '0.00205260': 156.4, '0.00205270': 547.8, '0.00205390': 500.0,
                      '0.00205410': 111.53, '0.00205450': 0.14, '0.00205480': 591.22, '0.00205500': 5.0,
                      '0.00205510': 232.92, '0.00205520': 0.09, '0.00205540': 0.1, '0.00205590': 0.74,
                      '0.00205600': 111.6, '0.00205620': 3.0, '0.00205650': 0.09, '0.00205680': 0.35,
                      '0.00205690': 0.18, '0.00205700': 0.33, '0.00205730': 0.1, '0.00205780': 1.08, '0.00205790': 0.16,
                      '0.00205800': 2.26, '0.00205820': 291.2, '0.00205840': 0.31, '0.00205850': 0.93,
                      '0.00205860': 3.13, '0.00205870': 12.29, '0.00205900': 0.89, '0.00205910': 0.9, '0.00205920': 0.1,
                      '0.00205940': 2694.4, '0.00205970': 0.08, '0.00206000': 0.82, '0.00206020': 0.84,
                      '0.00206030': 0.95, '0.00206070': 1.85, '0.00206080': 1.48, '0.00206100': 4.85,
                      '0.00206110': 0.86, '0.00206120': 1.42, '0.00206130': 1.35, '0.00206140': 0.13,
                      '0.00206150': 1001.03, '0.00206160': 3.51, '0.00206170': 2.46, '0.00206180': 0.22,
                      '0.00206190': 0.42, '0.00206200': 1.33, '0.00206210': 0.1, '0.00206250': 3.0, '0.00206260': 0.32,
                      '0.00206270': 0.37, '0.00206280': 0.19, '0.00206290': 0.09, '0.00206300': 0.45,
                      '0.00206320': 2.93, '0.00206360': 3.78, '0.00206370': 3.37, '0.00206390': 5.63,
                      '0.00206400': 0.73, '0.00206410': 0.21, '0.00206420': 0.43, '0.00206440': 0.28, '0.00206450': 1.0,
                      '0.00206460': 0.27, '0.00206470': 1.62, '0.00206480': 0.1, '0.00206490': 0.12, '0.00206500': 0.37,
                      '0.00206510': 0.12, '0.00206520': 0.11, '0.00206530': 0.94, '0.00206540': 0.08,
                      '0.00206550': 2.66, '0.00206570': 0.25, '0.00206580': 0.3, '0.00206590': 0.23, '0.00206600': 0.93,
                      '0.00206610': 37.26, '0.00206620': 0.2, '0.00206640': 1.2, '0.00206650': 0.73, '0.00206660': 2.15,
                      '0.00206670': 0.88, '0.00206680': 1.48, '0.00206690': 0.44, '0.00206700': 3.8, '0.00206710': 0.07,
                      '0.00206720': 1.41, '0.00206740': 0.35, '0.00206750': 344.17, '0.00206760': 0.57,
                      '0.00206790': 0.84, '0.00206800': 5.54, '0.00206820': 0.1, '0.00206830': 2.88, '0.00206840': 0.09,
                      '0.00206850': 0.1, '0.00206860': 0.33, '0.00206870': 3.86, '0.00206880': 54.72,
                      '0.00206900': 1.03, '0.00206910': 0.3, '0.00206920': 2.45, '0.00206930': 4.03, '0.00206940': 0.51,
                      '0.00206950': 2.55, '0.00206970': 0.24, '0.00206980': 14.2, '0.00207000': 10.86,
                      '0.00207010': 0.06, '0.00207030': 0.07, '0.00207040': 0.55, '0.00207060': 0.1, '0.00207080': 0.6,
                      '0.00207090': 0.27, '0.00207100': 0.41, '0.00207110': 361.15, '0.00207120': 91.12,
                      '0.00207130': 0.12, '0.00207140': 2.85, '0.00207160': 0.94, '0.00207170': 0.31, '0.00207210': 1.0,
                      '0.00207220': 0.22, '0.00207230': 1.26, '0.00207250': 0.21, '0.00207260': 0.43,
                      '0.00207270': 0.94, '0.00207290': 3.78, '0.00207300': 0.4, '0.00207310': 1.35, '0.00207320': 0.76,
                      '0.00207330': 0.13, '0.00207350': 1.01, '0.00207360': 0.51, '0.00207380': 0.11,
                      '0.00207400': 3.24, '0.00207410': 1.6, '0.00207420': 5.11, '0.00207430': 0.38, '0.00207440': 1.5,
                      '0.00207450': 1.21, '0.00207460': 0.98, '0.00207470': 2.11, '0.00207480': 0.31,
                      '0.00207500': 3.43, '0.00207510': 2.75, '0.00207530': 3.3, '0.00207550': 1.34, '0.00207560': 0.94,
                      '0.00207570': 0.78, '0.00207580': 2.65, '0.00207600': 0.43, '0.00207610': 0.25,
                      '0.00207620': 0.93, '0.00207630': 1.74, '0.00207640': 0.99, '0.00207650': 1.33, '0.00207660': 0.1,
                      '0.00207670': 8.51, '0.00207680': 1153.64, '0.00207690': 3.33, '0.00207700': 3.46,
                      '0.00207710': 21.82, '0.00207730': 3.9, '0.00207740': 0.12, '0.00207750': 5.0, '0.00207760': 1.6,
                      '0.00207770': 1.0, '0.00207790': 0.2, '0.00207810': 0.16, '0.00207820': 0.2, '0.00207830': 0.1,
                      '0.00207860': 4.27, '0.00207880': 3.08, '0.00207900': 3.33, '0.00207910': 0.67,
                      '0.00207920': 0.21, '0.00207930': 2.78, '0.00207940': 0.24, '0.00207950': 0.43,
                      '0.00207960': 0.51, '0.00207980': 3.16, '0.00207990': 0.66, '0.00208000': 1.7, '0.00208010': 0.94,
                      '0.00208020': 376.14, '0.00208030': 0.34, '0.00208040': 2.49, '0.00208050': 0.45,
                      '0.00208070': 0.09, '0.00208080': 5.49, '0.00208090': 0.23, '0.00208100': 1.62,
                      '0.00208110': 3.06, '0.00208120': 3.0, '0.00208130': 1.16, '0.00208140': 1.63, '0.00208150': 1.53,
                      '0.00208160': 1.06, '0.00208170': 1.07, '0.00208180': 0.6, '0.00208200': 0.15, '0.00208210': 1.9,
                      '0.00208220': 1.1, '0.00208230': 0.09, '0.00208240': 2.46, '0.00208260': 0.09, '0.00208270': 0.17,
                      '0.00208290': 0.21, '0.00208300': 0.76, '0.00208310': 0.77, '0.00208320': 5.93,
                      '0.00208330': 0.99, '0.00208340': 2.88, '0.00208350': 1.58, '0.00208360': 0.23,
                      '0.00208380': 1.53, '0.00208390': 1.4, '0.00208400': 0.99, '0.00208410': 1.13, '0.00208430': 3.76,
                      '0.00208440': 34.7, '0.00208450': 1.31, '0.00208470': 0.7, '0.00208480': 3.32, '0.00208490': 0.59,
                      '0.00208500': 2.68, '0.00208520': 10.58, '0.00208530': 0.44, '0.00208550': 0.55,
                      '0.00208560': 0.36, '0.00208570': 0.19, '0.00208580': 0.07, '0.00208590': 0.78, '0.00208600': 0.1,
                      '0.00208610': 0.54, '0.00208620': 3.99, '0.00208650': 0.74, '0.00208660': 0.24,
                      '0.00208680': 3.47, '0.00208690': 1.14, '0.00208700': 1.03, '0.00208710': 0.26,
                      '0.00208720': 0.08, '0.00208730': 0.42, '0.00208740': 6.59, '0.00208750': 8.02,
                      '0.00208760': 5.34, '0.00208770': 4.69, '0.00208780': 1.25, '0.00208790': 0.11,
                      '0.00208800': 377.1, '0.00208810': 0.09, '0.00208820': 1.78, '0.00208830': 0.64,
                      '0.00208840': 0.2, '0.00208860': 1.87, '0.00208870': 0.07, '0.00208880': 24.99,
                      '0.00208890': 0.54, '0.00208900': 0.21, '0.00208940': 2.25, '0.00208950': 1.1, '0.00208960': 0.12,
                      '0.00208970': 0.1, '0.00208980': 0.91, '0.00208990': 0.5, '0.00209000': 11.08, '0.00209010': 0.19,
                      '0.00209040': 6.1, '0.00209060': 0.11, '0.00209070': 0.34, '0.00209090': 119.61,
                      '0.00209100': 1.11, '0.00209110': 0.59, '0.00209130': 0.71, '0.00209140': 1.16, '0.00209150': 1.4,
                      '0.00209160': 1.26, '0.00209170': 0.95, '0.00209180': 3.07, '0.00209190': 16.78,
                      '0.00209200': 1.31, '0.00209210': 0.55, '0.00209220': 0.43, '0.00209240': 0.91,
                      '0.00209250': 3.31, '0.00209270': 0.22, '0.00209280': 0.33, '0.00209290': 0.2,
                      '0.00209300': 11.07, '0.00209330': 2.96, '0.00209340': 0.67, '0.00209350': 0.52,
                      '0.00209370': 7.3, '0.00209380': 0.26, '0.00209390': 0.15, '0.00209400': 0.47, '0.00209410': 4.99,
                      '0.00209420': 0.2, '0.00209440': 0.71, '0.00209450': 7.71, '0.00209460': 0.26, '0.00209470': 0.37,
                      '0.00209480': 0.91, '0.00209490': 1.71, '0.00209500': 0.22, '0.00209520': 2.54,
                      '0.00209530': 7.01, '0.00209540': 0.76, '0.00209550': 3.47, '0.00209570': 373.47,
                      '0.00209580': 0.33, '0.00209590': 0.63, '0.00209600': 0.41, '0.00209610': 0.92,
                      '0.00209620': 0.25, '0.00209640': 0.11, '0.00209680': 0.13, '0.00209690': 0.16,
                      '0.00209700': 1.34, '0.00209710': 1.63, '0.00209720': 0.14, '0.00209730': 0.09,
                      '0.00209740': 6.43, '0.00209750': 2.33, '0.00209760': 0.71, '0.00209790': 1.3, '0.00209800': 4.09,
                      '0.00209820': 0.21, '0.00209830': 0.21, '0.00209840': 1.22, '0.00209850': 1.6, '0.00209860': 0.99,
                      '0.00209870': 0.93, '0.00209890': 53.21, '0.00209900': 0.84, '0.00209910': 3.59,
                      '0.00209920': 1.3, '0.00209930': 5.01, '0.00209940': 0.53, '0.00209950': 1.4, '0.00209980': 3.57,
                      '0.00209990': 1.12, '0.00210000': 54.4, '0.00210010': 0.33, '0.00210030': 3.3, '0.00210040': 0.63,
                      '0.00210050': 0.4, '0.00210060': 0.26, '0.00210080': 5.9, '0.00210090': 0.33, '0.00210100': 2.72,
                      '0.00210110': 0.71, '0.00210120': 1.14, '0.00210130': 3.79, '0.00210140': 0.35,
                      '0.00210150': 0.09, '0.00210180': 1.41, '0.00210190': 0.26, '0.00210200': 0.72,
                      '0.00210210': 0.21, '0.00210230': 4.92, '0.00210250': 0.36, '0.00210260': 13.58,
                      '0.00210280': 1.02, '0.00210300': 0.16, '0.00210310': 3.31, '0.00210320': 1.57,
                      '0.00210330': 1.25, '0.00210340': 0.11, '0.00210350': 0.42, '0.00210360': 0.12,
                      '0.00210380': 6.91, '0.00210390': 0.31, '0.00210400': 0.13, '0.00210420': 0.15,
                      '0.00210430': 1.24, '0.00210440': 0.65, '0.00210450': 0.98, '0.00210460': 4.95,
                      '0.00210470': 3.09, '0.00210480': 0.2, '0.00210490': 1.97, '0.00210500': 0.42, '0.00210520': 0.42,
                      '0.00210530': 0.88, '0.00210540': 1.06, '0.00210560': 0.33, '0.00210570': 0.61, '0.00210580': 0.1,
                      '0.00210590': 1.4, '0.00210600': 0.08, '0.00210610': 1.31, '0.00210620': 1.5, '0.00210630': 0.1,
                      '0.00210640': 0.93, '0.00210650': 1.29, '0.00210670': 1.41, '0.00210680': 2.4,
                      '0.00210690': 16.56, '0.00210700': 2.5, '0.00210710': 2.48, '0.00210720': 0.93, '0.00210750': 4.8,
                      '0.00210760': 0.59, '0.00210770': 1.14, '0.00210780': 0.09, '0.00210790': 0.62,
                      '0.00210800': 0.64, '0.00210810': 4.55, '0.00210820': 1.5, '0.00210840': 3.95, '0.00210850': 4.25,
                      '0.00210860': 1.32, '0.00210880': 0.35, '0.00210890': 3.69, '0.00210900': 0.09,
                      '0.00210910': 4.61, '0.00210920': 0.19, '0.00210930': 0.43, '0.00210940': 0.22,
                      '0.00210960': 0.45, '0.00210970': 0.3, '0.00210980': 0.6, '0.00210990': 0.09, '0.00211000': 15.43,
                      '0.00211010': 0.2, '0.00211030': 1.45, '0.00211040': 0.3, '0.00211050': 6.74, '0.00211060': 0.38,
                      '0.00211070': 2.31, '0.00211080': 0.62, '0.00211090': 7.66, '0.00211100': 0.91,
                      '0.00211110': 2.24, '0.00211120': 0.24, '0.00211140': 2.41, '0.00211150': 0.77,
                      '0.00211190': 0.25, '0.00211200': 0.28, '0.00211210': 3.65, '0.00211230': 0.89,
                      '0.00211240': 1.28, '0.00211250': 0.43, '0.00211260': 1.27, '0.00211280': 0.43, '0.00211290': 0.2,
                      '0.00211310': 0.97, '0.00211320': 0.08, '0.00211330': 0.11, '0.00211340': 0.95,
                      '0.00211350': 0.13, '0.00211360': 0.41, '0.00211370': 1.21, '0.00211380': 1.47,
                      '0.00211410': 8.24, '0.00211420': 1.15, '0.00211430': 7.0, '0.00211440': 2.48, '0.00211450': 0.55,
                      '0.00211460': 4.44, '0.00211470': 3.05, '0.00211480': 0.13, '0.00211490': 0.13,
                      '0.00211500': 53.84, '0.00211510': 2.22, '0.00211520': 0.9, '0.00211540': 3.08,
                      '0.00211550': 6.19, '0.00211560': 0.1, '0.00211570': 0.11, '0.00211590': 3.27, '0.00211600': 1.59,
                      '0.00211620': 1.02, '0.00211630': 0.61, '0.00211640': 0.27, '0.00211650': 6.04,
                      '0.00211660': 6.61, '0.00211670': 0.52, '0.00211690': 0.33, '0.00211700': 0.46,
                      '0.00211710': 4.11, '0.00211720': 5.72, '0.00211740': 1.9, '0.00211750': 1.41, '0.00211760': 2.25,
                      '0.00211770': 0.46, '0.00211780': 1.66, '0.00211790': 3.32, '0.00211800': 1.13,
                      '0.00211810': 1.32, '0.00211820': 0.44, '0.00211830': 3.83, '0.00211840': 2.35,
                      '0.00211850': 2.53, '0.00211880': 0.98, '0.00211890': 0.7, '0.00211900': 5.87, '0.00211910': 1.05,
                      '0.00211920': 369.59, '0.00211930': 0.16, '0.00211940': 4.04, '0.00211950': 0.13,
                      '0.00211980': 0.57, '0.00211990': 12.92, '0.00212000': 9.52, '0.00212010': 3.56,
                      '0.00212020': 1.62, '0.00212040': 0.9, '0.00212050': 1.4, '0.00212060': 0.93, '0.00212080': 3.1,
                      '0.00212090': 0.42, '0.00212100': 10.26, '0.00212110': 0.51, '0.00212120': 1.56,
                      '0.00212130': 0.42, '0.00212140': 1.51, '0.00212150': 1.53, '0.00212160': 1.86,
                      '0.00212170': 0.33, '0.00212190': 16.42, '0.00212200': 4.54, '0.00212210': 13.49,
                      '0.00212220': 3.71, '0.00212230': 8.2, '0.00212240': 8.21, '0.00212250': 2.96, '0.00212260': 0.6,
                      '0.00212270': 0.09, '0.00212280': 7.55, '0.00212290': 0.35, '0.00212300': 2.27,
                      '0.00212320': 5.28, '0.00212340': 0.11, '0.00212350': 1.31, '0.00212370': 0.22,
                      '0.00212380': 4.38, '0.00212390': 0.54, '0.00212400': 0.09, '0.00212420': 4.02, '0.00212430': 0.4,
                      '0.00212440': 5.18, '0.00212450': 3.13, '0.00212460': 1.62, '0.00212470': 0.76, '0.00212480': 0.1,
                      '0.00212490': 1.1, '0.00212500': 0.31, '0.00212510': 0.21, '0.00212530': 6.08, '0.00212540': 0.45,
                      '0.00212550': 0.19, '0.00212560': 0.98, '0.00212570': 5.08, '0.00212580': 1.02,
                      '0.00212600': 2.27, '0.00212620': 0.88, '0.00212630': 0.16, '0.00212640': 0.45,
                      '0.00212650': 0.38, '0.00212660': 1.3, '0.00212670': 0.9, '0.00212680': 2.92, '0.00212690': 1.92,
                      '0.00212700': 367.96, '0.00212710': 0.56, '0.00212720': 0.34, '0.00212730': 3.07,
                      '0.00212740': 1.78, '0.00212760': 0.09, '0.00212770': 4.78, '0.00212780': 0.12,
                      '0.00212800': 1.36, '0.00212830': 1.04, '0.00212840': 0.2, '0.00212850': 0.45, '0.00212860': 0.37,
                      '0.00212870': 1.1, '0.00212880': 3.79, '0.00212890': 0.13, '0.00212900': 1.52, '0.00212910': 1.2,
                      '0.00212920': 1.31, '0.00212930': 4.62, '0.00212960': 12.49, '0.00212970': 1.42,
                      '0.00212980': 1.52, '0.00212990': 5.48, '0.00213000': 86.01, '0.00213020': 0.33,
                      '0.00213030': 0.11, '0.00213040': 0.3, '0.00213060': 0.13, '0.00213070': 6.83, '0.00213080': 0.42,
                      '0.00213110': 0.53, '0.00213120': 2.96, '0.00213130': 0.54, '0.00213140': 2.65,
                      '0.00213150': 1.15, '0.00213160': 0.13, '0.00213170': 3.34, '0.00213180': 0.38,
                      '0.00213190': 3.66, '0.00213200': 1.26, '0.00213210': 453.67, '0.00213220': 16.18,
                      '0.00213230': 1.42, '0.00213240': 0.83, '0.00213250': 2.53, '0.00213260': 7.16,
                      '0.00213270': 29.1, '0.00213280': 0.4, '0.00213290': 1.13, '0.00213300': 1167.47,
                      '0.00213310': 0.17, '0.00213320': 1.32, '0.00213330': 2.2, '0.00213350': 5.23, '0.00213360': 2.6,
                      '0.00213370': 0.6, '0.00213380': 2.22, '0.00213390': 0.06, '0.00213400': 5.87, '0.00213420': 0.09,
                      '0.00213430': 0.12, '0.00213440': 1.15, '0.00213450': 2.05, '0.00213460': 7.86,
                      '0.00213470': 1.33, '0.00213480': 0.09, '0.00213500': 384.61, '0.00213510': 1.64,
                      '0.00213520': 0.11, '0.00213530': 4.54, '0.00213540': 5.2, '0.00213550': 0.43, '0.00213560': 0.09,
                      '0.00213570': 0.56, '0.00213580': 0.07, '0.00213590': 1.29, '0.00213600': 2.5, '0.00213610': 1.88,
                      '0.00213620': 1.03, '0.00213630': 4.84, '0.00213640': 0.11, '0.00213650': 1.94,
                      '0.00213660': 0.09, '0.00213670': 2.61, '0.00213680': 1.06, '0.00213690': 3.8,
                      '0.00213700': 50.99, '0.00213710': 1.15, '0.00213720': 0.38, '0.00213730': 2.76,
                      '0.00213750': 2.18, '0.00213760': 1.44, '0.00213770': 5.02, '0.00213780': 1.99,
                      '0.00213790': 1.78, '0.00213810': 0.35, '0.00213820': 0.22, '0.00213900': 0.15,
                      '0.00213910': 0.44, '0.00213920': 2.25, '0.00213930': 0.34, '0.00213940': 3.33,
                      '0.00213950': 0.33, '0.00213960': 0.34, '0.00213970': 7.19, '0.00213990': 5.01,
                      '0.00214000': 16.38, '0.00214010': 1.37, '0.00214020': 3.67, '0.00214030': 0.19,
                      '0.00214050': 0.09, '0.00214060': 0.13, '0.00214070': 0.7, '0.00214090': 1.19, '0.00214100': 3.33,
                      '0.00214110': 0.55, '0.00214120': 1.44, '0.00214130': 0.39, '0.00214140': 11.24,
                      '0.00214150': 4.33, '0.00214160': 0.18, '0.00214190': 0.38, '0.00214200': 0.83,
                      '0.00214210': 0.68, '0.00214220': 2.03, '0.00214230': 0.75, '0.00214240': 0.43,
                      '0.00214250': 1.51, '0.00214260': 0.61, '0.00214270': 1.22, '0.00214280': 0.16,
                      '0.00214290': 365.15, '0.00214300': 0.13, '0.00214310': 2.66, '0.00214320': 0.33,
                      '0.00214330': 0.89, '0.00214340': 103.84, '0.00214350': 4.47, '0.00214360': 1.12,
                      '0.00214370': 0.85, '0.00214390': 14.62, '0.00214400': 1.2, '0.00214410': 3.59, '0.00214420': 1.5,
                      '0.00214430': 5.63, '0.00214440': 1.47, '0.00214450': 0.27, '0.00214460': 3.04,
                      '0.00214470': 0.09, '0.00214480': 1.14, '0.00214490': 0.31, '0.00214500': 4.18,
                      '0.00214510': 0.38, '0.00214520': 1.53, '0.00214530': 0.18, '0.00214540': 18.19,
                      '0.00214550': 1.36, '0.00214560': 25.11, '0.00214570': 10.19, '0.00214580': 0.91,
                      '0.00214590': 1.0, '0.00214600': 0.6, '0.00214610': 0.9, '0.00214620': 0.63, '0.00214630': 0.75,
                      '0.00214640': 0.33, '0.00214660': 0.13, '0.00214670': 2.54, '0.00214680': 23.22,
                      '0.00214690': 0.67, '0.00214700': 0.09, '0.00214710': 0.12, '0.00214720': 0.27,
                      '0.00214730': 0.09, '0.00214740': 48.8, '0.00214760': 3.41, '0.00214770': 0.07,
                      '0.00214780': 6.21, '0.00214790': 0.57, '0.00214800': 3.84, '0.00214820': 0.85,
                      '0.00214830': 6.64, '0.00214840': 0.49, '0.00214850': 0.42, '0.00214860': 1.12,
                      '0.00214870': 6.58, '0.00214880': 1.84, '0.00214890': 0.08, '0.00214900': 1.31, '0.00214910': 2.5,
                      '0.00214920': 0.22, '0.00214930': 43.82, '0.00214940': 6.38, '0.00214960': 3.94,
                      '0.00214980': 2.88, '0.00214990': 1.25, '0.00215000': 31.03, '0.00215010': 0.2,
                      '0.00215020': 0.98, '0.00215030': 0.24, '0.00215040': 1.15, '0.00215050': 1.17,
                      '0.00215060': 2.55, '0.00215080': 135.25, '0.00215090': 4.07, '0.00215100': 0.59,
                      '0.00215110': 2.55, '0.00215120': 0.13, '0.00215140': 0.16, '0.00215150': 0.25,
                      '0.00215160': 12.52, '0.00215170': 19.41, '0.00215180': 0.44, '0.00215190': 8.88,
                      '0.00215200': 1.07, '0.00215210': 7.04, '0.00215220': 0.12, '0.00215230': 17.15,
                      '0.00215240': 0.09, '0.00215260': 1.7, '0.00215270': 1.34, '0.00215280': 0.54, '0.00215300': 2.09,
                      '0.00215310': 0.21, '0.00215320': 3.62, '0.00215330': 1.26, '0.00215340': 1.36,
                      '0.00215360': 0.21, '0.00215370': 2.04, '0.00215380': 2.78, '0.00215390': 0.53,
                      '0.00215400': 1.02, '0.00215410': 2.45, '0.00215420': 0.15, '0.00215440': 0.15, '0.00215450': 0.2,
                      '0.00215460': 0.24, '0.00215470': 1.48, '0.00215480': 0.46, '0.00215500': 3.64,
                      '0.00215510': 4.72, '0.00215520': 3.69, '0.00215530': 0.1, '0.00215540': 0.52, '0.00215550': 1.94,
                      '0.00215560': 3.21, '0.00215570': 0.32, '0.00215580': 0.79, '0.00215590': 0.08,
                      '0.00215600': 1.54, '0.00215620': 0.36, '0.00215630': 0.2, '0.00215640': 9.23, '0.00215650': 0.99,
                      '0.00215660': 3.22, '0.00215670': 0.3, '0.00215680': 0.1, '0.00215690': 2.99, '0.00215700': 1.61,
                      '0.00215710': 2.35, '0.00215720': 1.66, '0.00215730': 0.2, '0.00215740': 2.84, '0.00215750': 1.07,
                      '0.00215770': 1.11, '0.00215780': 0.89, '0.00215790': 0.29, '0.00215800': 10.68,
                      '0.00215810': 0.12, '0.00215820': 0.43, '0.00215840': 0.96, '0.00215860': 1.34,
                      '0.00215880': 363.14, '0.00215890': 0.27, '0.00215900': 26.96, '0.00215910': 0.59,
                      '0.00215920': 0.33, '0.00215930': 0.36, '0.00215940': 0.74, '0.00215950': 0.57,
                      '0.00215960': 1.19, '0.00215970': 0.29, '0.00216000': 4.76, '0.00216010': 0.74,
                      '0.00216020': 10.38, '0.00216040': 5.62, '0.00216050': 1.98, '0.00216060': 0.43,
                      '0.00216070': 0.79, '0.00216080': 1.31, '0.00216090': 1.27, '0.00216100': 2.34,
                      '0.00216110': 1.15, '0.00216120': 2.87, '0.00216130': 22.94, '0.00216140': 1.3,
                      '0.00216150': 0.09, '0.00216160': 0.8, '0.00216170': 4.53, '0.00216180': 0.32,
                      '0.00216200': 125.35, '0.00216210': 0.7, '0.00216220': 5.0, '0.00216230': 0.09,
                      '0.00216250': 0.44, '0.00216260': 0.09, '0.00216300': 4.08, '0.00216310': 24.35,
                      '0.00216360': 3.51, '0.00216380': 2.75, '0.00216400': 2.53, '0.00216410': 0.67,
                      '0.00216420': 1.03, '0.00216440': 0.29, '0.00216450': 1.86, '0.00216460': 0.33,
                      '0.00216470': 2.31, '0.00216480': 0.21, '0.00216490': 0.23, '0.00216500': 86.44,
                      '0.00216510': 1.95, '0.00216520': 0.92, '0.00216530': 3.31, '0.00216540': 1.79,
                      '0.00216550': 1.07, '0.00216560': 2.77, '0.00216580': 0.37, '0.00216590': 0.66,
                      '0.00216600': 1.16, '0.00216640': 2.58, '0.00216650': 0.2, '0.00216660': 2.29, '0.00216670': 0.11,
                      '0.00216680': 361.17, '0.00216690': 0.36, '0.00216710': 0.8, '0.00216740': 0.65,
                      '0.00216750': 2.81, '0.00216760': 16.56, '0.00216770': 0.52, '0.00216780': 0.81,
                      '0.00216790': 1.02, '0.00216800': 1.8, '0.00216810': 0.32, '0.00216820': 0.65, '0.00216830': 1.35,
                      '0.00216840': 1.26, '0.00216850': 1.0, '0.00216860': 1.17, '0.00216870': 1.51, '0.00216880': 2.46,
                      '0.00216890': 1.63, '0.00216900': 17.81, '0.00216920': 0.66, '0.00216930': 0.22,
                      '0.00216940': 18.99, '0.00216960': 1.6, '0.00216970': 3.49, '0.00216980': 0.46, '0.00216990': 2.6,
                      '0.00217000': 206.82, '0.00217020': 0.65, '0.00217030': 0.8, '0.00217040': 0.65,
                      '0.00217050': 0.1, '0.00217070': 0.45, '0.00217080': 0.66, '0.00217090': 5.02, '0.00217100': 1.81,
                      '0.00217120': 0.95, '0.00217130': 1.89, '0.00217140': 1.93, '0.00217150': 5.99,
                      '0.00217160': 0.29, '0.00217170': 3.19, '0.00217180': 6.22, '0.00217190': 1.51,
                      '0.00217200': 3.26, '0.00217210': 1.3, '0.00217230': 1.39, '0.00217240': 0.84, '0.00217250': 3.62,
                      '0.00217260': 2.49, '0.00217280': 0.14, '0.00217290': 2.23, '0.00217300': 2.03,
                      '0.00217310': 0.62, '0.00217330': 0.44, '0.00217340': 3.47, '0.00217350': 1.13,
                      '0.00217360': 0.29, '0.00217370': 1.1, '0.00217390': 1.85, '0.00217410': 1.09, '0.00217420': 6.42,
                      '0.00217430': 0.22, '0.00217440': 258.32, '0.00217450': 2.35, '0.00217460': 0.09,
                      '0.00217470': 1.2, '0.00217490': 363.51, '0.00217500': 3.7, '0.00217510': 6.92,
                      '0.00217520': 0.06, '0.00217540': 0.65, '0.00217550': 0.1, '0.00217560': 1.63, '0.00217570': 0.33,
                      '0.00217580': 0.22, '0.00217590': 5.86, '0.00217600': 1.06, '0.00217610': 0.09, '0.00217620': 1.2,
                      '0.00217630': 2.35}

        self.assert_list = [[0.0020498, 39.05], [0.0020499, 1.63], [0.0020505, 158.68], [0.0020506, 81.97],
                            [0.0020508, 32.5], [0.0020509, 16.74], [0.002051, 149.34], [0.0020511, 6.68],
                            [0.0020514, 16.77], [0.0020515, 50.0], [0.0020517, 17.1], [0.0020518, 20.04],
                            [0.0020519, 54.93], [0.002052, 192.59], [0.0020521, 286.96], [0.0020522, 156.73],
                            [0.0020525, 231.43], [0.0020526, 156.4], [0.0020527, 547.8], [0.0020539, 500.0],
                            [0.0020541, 111.53], [0.0020545, 0.14], [0.0020548, 591.22], [0.002055, 5.0],
                            [0.0020551, 232.92], [0.0020552, 0.09], [0.0020554, 0.1], [0.0020559, 0.74],
                            [0.002056, 111.6], [0.0020562, 3.0], [0.0020565, 0.09], [0.0020568, 0.35],
                            [0.0020569, 0.18], [0.002057, 0.33], [0.0020573, 0.1], [0.0020578, 1.08], [0.0020579, 0.16],
                            [0.002058, 2.26], [0.0020582, 291.2], [0.0020584, 0.31], [0.0020585, 0.93],
                            [0.0020586, 3.13], [0.0020587, 12.29], [0.002059, 0.89], [0.0020591, 0.9], [0.0020592, 0.1],
                            [0.0020594, 2694.4], [0.0020597, 0.08], [0.00206, 0.82], [0.0020602, 0.84],
                            [0.0020603, 0.95], [0.0020607, 1.85], [0.0020608, 1.48], [0.002061, 4.85],
                            [0.0020611, 0.86], [0.0020612, 1.42], [0.0020613, 1.35], [0.0020614, 0.13],
                            [0.0020615, 1001.03], [0.0020616, 3.51], [0.0020617, 2.46], [0.0020618, 0.22],
                            [0.0020619, 0.42], [0.002062, 1.33], [0.0020621, 0.1], [0.0020625, 3.0], [0.0020626, 0.32],
                            [0.0020627, 0.37], [0.0020628, 0.19], [0.0020629, 0.09], [0.002063, 0.45],
                            [0.0020632, 2.93], [0.0020636, 3.78], [0.0020637, 3.37], [0.0020639, 5.63],
                            [0.002064, 0.73], [0.0020641, 0.21], [0.0020642, 0.43], [0.0020644, 0.28], [0.0020645, 1.0],
                            [0.0020646, 0.27], [0.0020647, 1.62], [0.0020648, 0.1], [0.0020649, 0.12], [0.002065, 0.37],
                            [0.0020651, 0.12], [0.0020652, 0.11], [0.0020653, 0.94], [0.0020654, 0.08],
                            [0.0020655, 2.66], [0.0020657, 0.25], [0.0020658, 0.3], [0.0020659, 0.23], [0.002066, 0.93],
                            [0.0020661, 37.26], [0.0020662, 0.2], [0.0020664, 1.2], [0.0020665, 0.73],
                            [0.0020666, 2.15], [0.0020667, 0.88], [0.0020668, 1.48], [0.0020669, 0.44], [0.002067, 3.8],
                            [0.0020671, 0.07], [0.0020672, 1.41], [0.0020674, 0.35], [0.0020675, 344.17],
                            [0.0020676, 0.57], [0.0020679, 0.84], [0.002068, 5.54], [0.0020682, 0.1], [0.0020683, 2.88],
                            [0.0020684, 0.09], [0.0020685, 0.1], [0.0020686, 0.33], [0.0020687, 3.86],
                            [0.0020688, 54.72], [0.002069, 1.03], [0.0020691, 0.3], [0.0020692, 2.45],
                            [0.0020693, 4.03], [0.0020694, 0.51], [0.0020695, 2.55], [0.0020697, 0.24],
                            [0.0020698, 14.2], [0.00207, 10.86], [0.0020701, 0.06], [0.0020703, 0.07],
                            [0.0020704, 0.55], [0.0020706, 0.1], [0.0020708, 0.6], [0.0020709, 0.27], [0.002071, 0.41],
                            [0.0020711, 361.15], [0.0020712, 91.12], [0.0020713, 0.12], [0.0020714, 2.85],
                            [0.0020716, 0.94], [0.0020717, 0.31], [0.0020721, 1.0], [0.0020722, 0.22],
                            [0.0020723, 1.26], [0.0020725, 0.21], [0.0020726, 0.43], [0.0020727, 0.94],
                            [0.0020729, 3.78], [0.002073, 0.4], [0.0020731, 1.35], [0.0020732, 0.76], [0.0020733, 0.13],
                            [0.0020735, 1.01], [0.0020736, 0.51], [0.0020738, 0.11], [0.002074, 3.24], [0.0020741, 1.6],
                            [0.0020742, 5.11], [0.0020743, 0.38], [0.0020744, 1.5], [0.0020745, 1.21],
                            [0.0020746, 0.98], [0.0020747, 2.11], [0.0020748, 0.31], [0.002075, 3.43],
                            [0.0020751, 2.75], [0.0020753, 3.3], [0.0020755, 1.34], [0.0020756, 0.94],
                            [0.0020757, 0.78], [0.0020758, 2.65], [0.002076, 0.43], [0.0020761, 0.25],
                            [0.0020762, 0.93], [0.0020763, 1.74], [0.0020764, 0.99], [0.0020765, 1.33],
                            [0.0020766, 0.1], [0.0020767, 8.51], [0.0020768, 1153.64], [0.0020769, 3.33],
                            [0.002077, 3.46], [0.0020771, 21.82], [0.0020773, 3.9], [0.0020774, 0.12], [0.0020775, 5.0],
                            [0.0020776, 1.6], [0.0020777, 1.0], [0.0020779, 0.2], [0.0020781, 0.16], [0.0020782, 0.2],
                            [0.0020783, 0.1], [0.0020786, 4.27], [0.0020788, 3.08], [0.002079, 3.33], [0.0020791, 0.67],
                            [0.0020792, 0.21], [0.0020793, 2.78], [0.0020794, 0.24], [0.0020795, 0.43],
                            [0.0020796, 0.51], [0.0020798, 3.16], [0.0020799, 0.66], [0.00208, 1.7], [0.0020801, 0.94],
                            [0.0020802, 376.14], [0.0020803, 0.34], [0.0020804, 2.49], [0.0020805, 0.45],
                            [0.0020807, 0.09], [0.0020808, 5.49], [0.0020809, 0.23], [0.002081, 1.62],
                            [0.0020811, 3.06], [0.0020812, 3.0], [0.0020813, 1.16], [0.0020814, 1.63],
                            [0.0020815, 1.53], [0.0020816, 1.06], [0.0020817, 1.07], [0.0020818, 0.6], [0.002082, 0.15],
                            [0.0020821, 1.9], [0.0020822, 1.1], [0.0020823, 0.09], [0.0020824, 2.46], [0.0020826, 0.09],
                            [0.0020827, 0.17], [0.0020829, 0.21], [0.002083, 0.76], [0.0020831, 0.77],
                            [0.0020832, 5.93], [0.0020833, 0.99], [0.0020834, 2.88], [0.0020835, 1.58],
                            [0.0020836, 0.23], [0.0020838, 1.53], [0.0020839, 1.4], [0.002084, 0.99], [0.0020841, 1.13],
                            [0.0020843, 3.76], [0.0020844, 34.7], [0.0020845, 1.31], [0.0020847, 0.7],
                            [0.0020848, 3.32], [0.0020849, 0.59], [0.002085, 2.68], [0.0020852, 10.58],
                            [0.0020853, 0.44], [0.0020855, 0.55], [0.0020856, 0.36], [0.0020857, 0.19],
                            [0.0020858, 0.07], [0.0020859, 0.78], [0.002086, 0.1], [0.0020861, 0.54], [0.0020862, 3.99],
                            [0.0020865, 0.74], [0.0020866, 0.24], [0.0020868, 3.47], [0.0020869, 1.14],
                            [0.002087, 1.03], [0.0020871, 0.26], [0.0020872, 0.08], [0.0020873, 0.42],
                            [0.0020874, 6.59], [0.0020875, 8.02], [0.0020876, 5.34], [0.0020877, 4.69],
                            [0.0020878, 1.25], [0.0020879, 0.11], [0.002088, 377.1], [0.0020881, 0.09],
                            [0.0020882, 1.78], [0.0020883, 0.64], [0.0020884, 0.2], [0.0020886, 1.87],
                            [0.0020887, 0.07], [0.0020888, 24.99], [0.0020889, 0.54], [0.002089, 0.21],
                            [0.0020894, 2.25], [0.0020895, 1.1], [0.0020896, 0.12], [0.0020897, 0.1], [0.0020898, 0.91],
                            [0.0020899, 0.5], [0.00209, 11.08], [0.0020901, 0.19], [0.0020904, 6.1], [0.0020906, 0.11],
                            [0.0020907, 0.34], [0.0020909, 119.61], [0.002091, 1.11], [0.0020911, 0.59],
                            [0.0020913, 0.71], [0.0020914, 1.16], [0.0020915, 1.4], [0.0020916, 1.26],
                            [0.0020917, 0.95], [0.0020918, 3.07], [0.0020919, 16.78], [0.002092, 1.31],
                            [0.0020921, 0.55], [0.0020922, 0.43], [0.0020924, 0.91], [0.0020925, 3.31],
                            [0.0020927, 0.22], [0.0020928, 0.33], [0.0020929, 0.2], [0.002093, 11.07],
                            [0.0020933, 2.96], [0.0020934, 0.67], [0.0020935, 0.52], [0.0020937, 7.3],
                            [0.0020938, 0.26], [0.0020939, 0.15], [0.002094, 0.47], [0.0020941, 4.99], [0.0020942, 0.2],
                            [0.0020944, 0.71], [0.0020945, 7.71], [0.0020946, 0.26], [0.0020947, 0.37],
                            [0.0020948, 0.91], [0.0020949, 1.71], [0.002095, 0.22], [0.0020952, 2.54],
                            [0.0020953, 7.01], [0.0020954, 0.76], [0.0020955, 3.47], [0.0020957, 373.47],
                            [0.0020958, 0.33], [0.0020959, 0.63], [0.002096, 0.41], [0.0020961, 0.92],
                            [0.0020962, 0.25], [0.0020964, 0.11], [0.0020968, 0.13], [0.0020969, 0.16],
                            [0.002097, 1.34], [0.0020971, 1.63], [0.0020972, 0.14], [0.0020973, 0.09],
                            [0.0020974, 6.43], [0.0020975, 2.33], [0.0020976, 0.71], [0.0020979, 1.3], [0.002098, 4.09],
                            [0.0020982, 0.21], [0.0020983, 0.21], [0.0020984, 1.22], [0.0020985, 1.6],
                            [0.0020986, 0.99], [0.0020987, 0.93], [0.0020989, 53.21], [0.002099, 0.84],
                            [0.0020991, 3.59], [0.0020992, 1.3], [0.0020993, 5.01], [0.0020994, 0.53], [0.0020995, 1.4],
                            [0.0020998, 3.57], [0.0020999, 1.12], [0.0021, 54.4], [0.0021001, 0.33], [0.0021003, 3.3],
                            [0.0021004, 0.63], [0.0021005, 0.4], [0.0021006, 0.26], [0.0021008, 5.9], [0.0021009, 0.33],
                            [0.002101, 2.72], [0.0021011, 0.71], [0.0021012, 1.14], [0.0021013, 3.79],
                            [0.0021014, 0.35], [0.0021015, 0.09], [0.0021018, 1.41], [0.0021019, 0.26],
                            [0.002102, 0.72], [0.0021021, 0.21], [0.0021023, 4.92], [0.0021025, 0.36],
                            [0.0021026, 13.58], [0.0021028, 1.02], [0.002103, 0.16], [0.0021031, 3.31],
                            [0.0021032, 1.57], [0.0021033, 1.25], [0.0021034, 0.11], [0.0021035, 0.42],
                            [0.0021036, 0.12], [0.0021038, 6.91], [0.0021039, 0.31], [0.002104, 0.13],
                            [0.0021042, 0.15], [0.0021043, 1.24], [0.0021044, 0.65], [0.0021045, 0.98],
                            [0.0021046, 4.95], [0.0021047, 3.09], [0.0021048, 0.2], [0.0021049, 1.97], [0.002105, 0.42],
                            [0.0021052, 0.42], [0.0021053, 0.88], [0.0021054, 1.06], [0.0021056, 0.33],
                            [0.0021057, 0.61], [0.0021058, 0.1], [0.0021059, 1.4], [0.002106, 0.08], [0.0021061, 1.31],
                            [0.0021062, 1.5], [0.0021063, 0.1], [0.0021064, 0.93], [0.0021065, 1.29], [0.0021067, 1.41],
                            [0.0021068, 2.4], [0.0021069, 16.56], [0.002107, 2.5], [0.0021071, 2.48], [0.0021072, 0.93],
                            [0.0021075, 4.8], [0.0021076, 0.59], [0.0021077, 1.14], [0.0021078, 0.09],
                            [0.0021079, 0.62], [0.002108, 0.64], [0.0021081, 4.55], [0.0021082, 1.5], [0.0021084, 3.95],
                            [0.0021085, 4.25], [0.0021086, 1.32], [0.0021088, 0.35], [0.0021089, 3.69],
                            [0.002109, 0.09], [0.0021091, 4.61], [0.0021092, 0.19], [0.0021093, 0.43],
                            [0.0021094, 0.22], [0.0021096, 0.45], [0.0021097, 0.3], [0.0021098, 0.6], [0.0021099, 0.09],
                            [0.00211, 15.43], [0.0021101, 0.2], [0.0021103, 1.45], [0.0021104, 0.3], [0.0021105, 6.74],
                            [0.0021106, 0.38], [0.0021107, 2.31], [0.0021108, 0.62], [0.0021109, 7.66],
                            [0.002111, 0.91], [0.0021111, 2.24], [0.0021112, 0.24], [0.0021114, 2.41],
                            [0.0021115, 0.77], [0.0021119, 0.25], [0.002112, 0.28], [0.0021121, 3.65],
                            [0.0021123, 0.89], [0.0021124, 1.28], [0.0021125, 0.43], [0.0021126, 1.27],
                            [0.0021128, 0.43], [0.0021129, 0.2], [0.0021131, 0.97], [0.0021132, 0.08],
                            [0.0021133, 0.11], [0.0021134, 0.95], [0.0021135, 0.13], [0.0021136, 0.41],
                            [0.0021137, 1.21], [0.0021138, 1.47], [0.0021141, 8.24], [0.0021142, 1.15],
                            [0.0021143, 7.0], [0.0021144, 2.48], [0.0021145, 0.55], [0.0021146, 4.44],
                            [0.0021147, 3.05], [0.0021148, 0.13], [0.0021149, 0.13], [0.002115, 53.84],
                            [0.0021151, 2.22], [0.0021152, 0.9], [0.0021154, 3.08], [0.0021155, 6.19], [0.0021156, 0.1],
                            [0.0021157, 0.11], [0.0021159, 3.27], [0.002116, 1.59], [0.0021162, 1.02],
                            [0.0021163, 0.61], [0.0021164, 0.27], [0.0021165, 6.04], [0.0021166, 6.61],
                            [0.0021167, 0.52], [0.0021169, 0.33], [0.002117, 0.46], [0.0021171, 4.11],
                            [0.0021172, 5.72], [0.0021174, 1.9], [0.0021175, 1.41], [0.0021176, 2.25],
                            [0.0021177, 0.46], [0.0021178, 1.66], [0.0021179, 3.32], [0.002118, 1.13],
                            [0.0021181, 1.32], [0.0021182, 0.44], [0.0021183, 3.83], [0.0021184, 2.35],
                            [0.0021185, 2.53], [0.0021188, 0.98], [0.0021189, 0.7], [0.002119, 5.87], [0.0021191, 1.05],
                            [0.0021192, 369.59], [0.0021193, 0.16], [0.0021194, 4.04], [0.0021195, 0.13],
                            [0.0021198, 0.57], [0.0021199, 12.92], [0.00212, 9.52], [0.0021201, 3.56],
                            [0.0021202, 1.62], [0.0021204, 0.9], [0.0021205, 1.4], [0.0021206, 0.93], [0.0021208, 3.1],
                            [0.0021209, 0.42], [0.002121, 10.26], [0.0021211, 0.51], [0.0021212, 1.56],
                            [0.0021213, 0.42], [0.0021214, 1.51], [0.0021215, 1.53], [0.0021216, 1.86],
                            [0.0021217, 0.33], [0.0021219, 16.42], [0.002122, 4.54], [0.0021221, 13.49],
                            [0.0021222, 3.71], [0.0021223, 8.2], [0.0021224, 8.21], [0.0021225, 2.96], [0.0021226, 0.6],
                            [0.0021227, 0.09], [0.0021228, 7.55], [0.0021229, 0.35], [0.002123, 2.27],
                            [0.0021232, 5.28], [0.0021234, 0.11], [0.0021235, 1.31], [0.0021237, 0.22],
                            [0.0021238, 4.38], [0.0021239, 0.54], [0.002124, 0.09], [0.0021242, 4.02], [0.0021243, 0.4],
                            [0.0021244, 5.18], [0.0021245, 3.13], [0.0021246, 1.62], [0.0021247, 0.76],
                            [0.0021248, 0.1], [0.0021249, 1.1], [0.002125, 0.31], [0.0021251, 0.21], [0.0021253, 6.08],
                            [0.0021254, 0.45], [0.0021255, 0.19], [0.0021256, 0.98], [0.0021257, 5.08],
                            [0.0021258, 1.02], [0.002126, 2.27], [0.0021262, 0.88], [0.0021263, 0.16],
                            [0.0021264, 0.45], [0.0021265, 0.38], [0.0021266, 1.3], [0.0021267, 0.9], [0.0021268, 2.92],
                            [0.0021269, 1.92], [0.002127, 367.96], [0.0021271, 0.56], [0.0021272, 0.34],
                            [0.0021273, 3.07], [0.0021274, 1.78], [0.0021276, 0.09], [0.0021277, 4.78],
                            [0.0021278, 0.12], [0.002128, 1.36], [0.0021283, 1.04], [0.0021284, 0.2], [0.0021285, 0.45],
                            [0.0021286, 0.37], [0.0021287, 1.1], [0.0021288, 3.79], [0.0021289, 0.13], [0.002129, 1.52],
                            [0.0021291, 1.2], [0.0021292, 1.31], [0.0021293, 4.62], [0.0021296, 12.49],
                            [0.0021297, 1.42], [0.0021298, 1.52], [0.0021299, 5.48], [0.00213, 86.01],
                            [0.0021302, 0.33], [0.0021303, 0.11], [0.0021304, 0.3], [0.0021306, 0.13],
                            [0.0021307, 6.83], [0.0021308, 0.42], [0.0021311, 0.53], [0.0021312, 2.96],
                            [0.0021313, 0.54], [0.0021314, 2.65], [0.0021315, 1.15], [0.0021316, 0.13],
                            [0.0021317, 3.34], [0.0021318, 0.38], [0.0021319, 3.66], [0.002132, 1.26],
                            [0.0021321, 453.67], [0.0021322, 16.18], [0.0021323, 1.42], [0.0021324, 0.83],
                            [0.0021325, 2.53], [0.0021326, 7.16], [0.0021327, 29.1], [0.0021328, 0.4],
                            [0.0021329, 1.13], [0.002133, 1167.47], [0.0021331, 0.17], [0.0021332, 1.32],
                            [0.0021333, 2.2], [0.0021335, 5.23], [0.0021336, 2.6], [0.0021337, 0.6], [0.0021338, 2.22],
                            [0.0021339, 0.06], [0.002134, 5.87], [0.0021342, 0.09], [0.0021343, 0.12],
                            [0.0021344, 1.15], [0.0021345, 2.05], [0.0021346, 7.86], [0.0021347, 1.33],
                            [0.0021348, 0.09], [0.002135, 384.61], [0.0021351, 1.64], [0.0021352, 0.11],
                            [0.0021353, 4.54], [0.0021354, 5.2], [0.0021355, 0.43], [0.0021356, 0.09],
                            [0.0021357, 0.56], [0.0021358, 0.07], [0.0021359, 1.29], [0.002136, 2.5], [0.0021361, 1.88],
                            [0.0021362, 1.03], [0.0021363, 4.84], [0.0021364, 0.11], [0.0021365, 1.94],
                            [0.0021366, 0.09], [0.0021367, 2.61], [0.0021368, 1.06], [0.0021369, 3.8],
                            [0.002137, 50.99], [0.0021371, 1.15], [0.0021372, 0.38], [0.0021373, 2.76],
                            [0.0021375, 2.18], [0.0021376, 1.44], [0.0021377, 5.02], [0.0021378, 1.99],
                            [0.0021379, 1.78], [0.0021381, 0.35], [0.0021382, 0.22], [0.002139, 0.15],
                            [0.0021391, 0.44], [0.0021392, 2.25], [0.0021393, 0.34], [0.0021394, 3.33],
                            [0.0021395, 0.33], [0.0021396, 0.34], [0.0021397, 7.19], [0.0021399, 5.01],
                            [0.00214, 16.38], [0.0021401, 1.37], [0.0021402, 3.67], [0.0021403, 0.19],
                            [0.0021405, 0.09], [0.0021406, 0.13], [0.0021407, 0.7], [0.0021409, 1.19], [0.002141, 3.33],
                            [0.0021411, 0.55], [0.0021412, 1.44], [0.0021413, 0.39], [0.0021414, 11.24],
                            [0.0021415, 4.33], [0.0021416, 0.18], [0.0021419, 0.38], [0.002142, 0.83],
                            [0.0021421, 0.68], [0.0021422, 2.03], [0.0021423, 0.75], [0.0021424, 0.43],
                            [0.0021425, 1.51], [0.0021426, 0.61], [0.0021427, 1.22], [0.0021428, 0.16],
                            [0.0021429, 365.15], [0.002143, 0.13], [0.0021431, 2.66], [0.0021432, 0.33],
                            [0.0021433, 0.89], [0.0021434, 103.84], [0.0021435, 4.47], [0.0021436, 1.12],
                            [0.0021437, 0.85], [0.0021439, 14.62], [0.002144, 1.2], [0.0021441, 3.59], [0.0021442, 1.5],
                            [0.0021443, 5.63], [0.0021444, 1.47], [0.0021445, 0.27], [0.0021446, 3.04],
                            [0.0021447, 0.09], [0.0021448, 1.14], [0.0021449, 0.31], [0.002145, 4.18],
                            [0.0021451, 0.38], [0.0021452, 1.53], [0.0021453, 0.18], [0.0021454, 18.19],
                            [0.0021455, 1.36], [0.0021456, 25.11], [0.0021457, 10.19], [0.0021458, 0.91],
                            [0.0021459, 1.0], [0.002146, 0.6], [0.0021461, 0.9], [0.0021462, 0.63], [0.0021463, 0.75],
                            [0.0021464, 0.33], [0.0021466, 0.13], [0.0021467, 2.54], [0.0021468, 23.22],
                            [0.0021469, 0.67], [0.002147, 0.09], [0.0021471, 0.12], [0.0021472, 0.27],
                            [0.0021473, 0.09], [0.0021474, 48.8], [0.0021476, 3.41], [0.0021477, 0.07],
                            [0.0021478, 6.21], [0.0021479, 0.57], [0.002148, 3.84], [0.0021482, 0.85],
                            [0.0021483, 6.64], [0.0021484, 0.49], [0.0021485, 0.42], [0.0021486, 1.12],
                            [0.0021487, 6.58], [0.0021488, 1.84], [0.0021489, 0.08], [0.002149, 1.31], [0.0021491, 2.5],
                            [0.0021492, 0.22], [0.0021493, 43.82], [0.0021494, 6.38], [0.0021496, 3.94],
                            [0.0021498, 2.88], [0.0021499, 1.25], [0.00215, 31.03], [0.0021501, 0.2], [0.0021502, 0.98],
                            [0.0021503, 0.24], [0.0021504, 1.15], [0.0021505, 1.17], [0.0021506, 2.55],
                            [0.0021508, 135.25], [0.0021509, 4.07], [0.002151, 0.59], [0.0021511, 2.55],
                            [0.0021512, 0.13], [0.0021514, 0.16], [0.0021515, 0.25], [0.0021516, 12.52],
                            [0.0021517, 19.41], [0.0021518, 0.44], [0.0021519, 8.88], [0.002152, 1.07],
                            [0.0021521, 7.04], [0.0021522, 0.12], [0.0021523, 17.15], [0.0021524, 0.09],
                            [0.0021526, 1.7], [0.0021527, 1.34], [0.0021528, 0.54], [0.002153, 2.09], [0.0021531, 0.21],
                            [0.0021532, 3.62], [0.0021533, 1.26], [0.0021534, 1.36], [0.0021536, 0.21],
                            [0.0021537, 2.04], [0.0021538, 2.78], [0.0021539, 0.53], [0.002154, 1.02],
                            [0.0021541, 2.45], [0.0021542, 0.15], [0.0021544, 0.15], [0.0021545, 0.2],
                            [0.0021546, 0.24], [0.0021547, 1.48], [0.0021548, 0.46], [0.002155, 3.64],
                            [0.0021551, 4.72], [0.0021552, 3.69], [0.0021553, 0.1], [0.0021554, 0.52],
                            [0.0021555, 1.94], [0.0021556, 3.21], [0.0021557, 0.32], [0.0021558, 0.79],
                            [0.0021559, 0.08], [0.002156, 1.54], [0.0021562, 0.36], [0.0021563, 0.2], [0.0021564, 9.23],
                            [0.0021565, 0.99], [0.0021566, 3.22], [0.0021567, 0.3], [0.0021568, 0.1], [0.0021569, 2.99],
                            [0.002157, 1.61], [0.0021571, 2.35], [0.0021572, 1.66], [0.0021573, 0.2], [0.0021574, 2.84],
                            [0.0021575, 1.07], [0.0021577, 1.11], [0.0021578, 0.89], [0.0021579, 0.29],
                            [0.002158, 10.68], [0.0021581, 0.12], [0.0021582, 0.43], [0.0021584, 0.96],
                            [0.0021586, 1.34], [0.0021588, 363.14], [0.0021589, 0.27], [0.002159, 26.96],
                            [0.0021591, 0.59], [0.0021592, 0.33], [0.0021593, 0.36], [0.0021594, 0.74],
                            [0.0021595, 0.57], [0.0021596, 1.19], [0.0021597, 0.29], [0.00216, 4.76], [0.0021601, 0.74],
                            [0.0021602, 10.38], [0.0021604, 5.62], [0.0021605, 1.98], [0.0021606, 0.43],
                            [0.0021607, 0.79], [0.0021608, 1.31], [0.0021609, 1.27], [0.002161, 2.34],
                            [0.0021611, 1.15], [0.0021612, 2.87], [0.0021613, 22.94], [0.0021614, 1.3],
                            [0.0021615, 0.09], [0.0021616, 0.8], [0.0021617, 4.53], [0.0021618, 0.32],
                            [0.002162, 125.35], [0.0021621, 0.7], [0.0021622, 5.0], [0.0021623, 0.09],
                            [0.0021625, 0.44], [0.0021626, 0.09], [0.002163, 4.08], [0.0021631, 24.35],
                            [0.0021636, 3.51], [0.0021638, 2.75], [0.002164, 2.53], [0.0021641, 0.67],
                            [0.0021642, 1.03], [0.0021644, 0.29], [0.0021645, 1.86], [0.0021646, 0.33],
                            [0.0021647, 2.31], [0.0021648, 0.21], [0.0021649, 0.23], [0.002165, 86.44],
                            [0.0021651, 1.95], [0.0021652, 0.92], [0.0021653, 3.31], [0.0021654, 1.79],
                            [0.0021655, 1.07], [0.0021656, 2.77], [0.0021658, 0.37], [0.0021659, 0.66],
                            [0.002166, 1.16], [0.0021664, 2.58], [0.0021665, 0.2], [0.0021666, 2.29], [0.0021667, 0.11],
                            [0.0021668, 361.17], [0.0021669, 0.36], [0.0021671, 0.8], [0.0021674, 0.65],
                            [0.0021675, 2.81], [0.0021676, 16.56], [0.0021677, 0.52], [0.0021678, 0.81],
                            [0.0021679, 1.02], [0.002168, 1.8], [0.0021681, 0.32], [0.0021682, 0.65], [0.0021683, 1.35],
                            [0.0021684, 1.26], [0.0021685, 1.0], [0.0021686, 1.17], [0.0021687, 1.51],
                            [0.0021688, 2.46], [0.0021689, 1.63], [0.002169, 17.81], [0.0021692, 0.66],
                            [0.0021693, 0.22], [0.0021694, 18.99], [0.0021696, 1.6], [0.0021697, 3.49],
                            [0.0021698, 0.46], [0.0021699, 2.6], [0.00217, 206.82], [0.0021702, 0.65], [0.0021703, 0.8],
                            [0.0021704, 0.65], [0.0021705, 0.1], [0.0021707, 0.45], [0.0021708, 0.66],
                            [0.0021709, 5.02], [0.002171, 1.81], [0.0021712, 0.95], [0.0021713, 1.89],
                            [0.0021714, 1.93], [0.0021715, 5.99], [0.0021716, 0.29], [0.0021717, 3.19],
                            [0.0021718, 6.22], [0.0021719, 1.51], [0.002172, 3.26], [0.0021721, 1.3], [0.0021723, 1.39],
                            [0.0021724, 0.84], [0.0021725, 3.62], [0.0021726, 2.49], [0.0021728, 0.14],
                            [0.0021729, 2.23], [0.002173, 2.03], [0.0021731, 0.62], [0.0021733, 0.44],
                            [0.0021734, 3.47], [0.0021735, 1.13], [0.0021736, 0.29], [0.0021737, 1.1],
                            [0.0021739, 1.85], [0.0021741, 1.09], [0.0021742, 6.42], [0.0021743, 0.22],
                            [0.0021744, 258.32], [0.0021745, 2.35], [0.0021746, 0.09], [0.0021747, 1.2],
                            [0.0021749, 363.51], [0.002175, 3.7], [0.0021751, 6.92], [0.0021752, 0.06],
                            [0.0021754, 0.65], [0.0021755, 0.1], [0.0021756, 1.63], [0.0021757, 0.33],
                            [0.0021758, 0.22], [0.0021759, 5.86], [0.002176, 1.06], [0.0021761, 0.09], [0.0021762, 1.2],
                            [0.0021763, 2.35]]

    def test_add_depth_cache_missing_stream_id(self):
        self.assertFalse(self.ubldc._add_depth_cache(market="BTCUSDT"))

    def test_add_depth_cache_missing_market(self):
        self.assertFalse(self.ubldc._add_depth_cache(stream_id="AAAAAAAAAAAAAAAAA"))

    def test_div(self):
        self.ubldc.get_latest_release_info()
        self.ubldc.get_latest_version()
        self.ubldc.get_version()
        self.ubldc.is_update_available()
        self.ubldc.is_depth_cache_synchronized("BTCUSDT")
        self.ubldc.get_list_of_depth_caches()

    def test_create_depth_cache_true(self):
        self.assertTrue(self.ubldc.create_depth_cache(markets='BTCUSDT', refresh_interval=20, update_interval=1000))
        try:
            self.ubldc.get_asks(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass
        try:
            self.ubldc.get_bids(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass

    def test_create_depth_cache_true_exists(self):
        self.assertTrue(self.ubldc.create_depth_cache(markets='BTCUSDT'))

    def test_stream_signal_disconnect(self):
        self.ubldc.ubwa.add_to_stream_signal_buffer("DISCONNECT", "faked_stream_id", "debug msg")

    def test_create_depth_cache_true_futures(self):
        self.assertTrue(self.ubldc_futures.create_depth_cache(markets='BTCUSDT', update_interval=100))
        time.sleep(120)

    def test_set_refresh_request(self):
        self.assertTrue(self.ubldc.set_refresh_request("BTCUSDT"))
        for stream_id in self.ubldc.ubwa.get_stream_list():
            self.ubldc.ubwa.set_restart_request(stream_id)
        time.sleep(10)

    def test_stop_depth_cache_true(self):
        self.assertTrue(self.ubldc.stop_depth_cache(str("BTCUSDT")))

    def test_create_depth_cache_false(self):
        self.assertFalse(self.ubldc.create_depth_cache())

    def test_stop_depth_cache_false(self):
        self.assertFalse(self.ubldc.stop_depth_cache())

    def test_get_asks(self):
        try:
            self.ubldc.get_asks(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass

    def test_get_bids(self):
        try:
            self.ubldc.get_bids(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass

    def test_sort_dict(self):
        self.assertListEqual(self.assert_list, self.ubldc._sort_depth_cache(self.items))

    def test_is_update_availabe_true(self):
        self.assertFalse((self.ubldc.is_update_available()))

    def test_invalid_market(self):
        try:
            self.ubldc.get_bids(market='TEST_INVALID_MARKET')
        except KeyError:
            pass

    def test_stop_manager(self):
        self.ubldc.stop_manager_with_all_depth_caches()
        self.ubldc_futures.stop_manager_with_all_depth_caches()


if __name__ == '__main__':
    unittest.main()

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# File: manager.py
#
# Part of ‘UNICORN Binance Local Depth Cache’
# Project website: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache
# Github: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache
# Documentation: https://unicorn-binance-local-depth-cache.docs.lucit.tech
# PyPI: https://pypi.org/project/unicorn-binance-local-depth-cache
#
# Author: LUCIT Systems and Development
#
# Copyright (c) 2022-2022, LUCIT Systems and Development (https://www.lucit.tech) and <NAME>
# All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish, dis-
# tribute, sublicense, and/or sell copies of the Software, and to permit
# persons to whom the Software is furnished to do so, subject to the fol-
# lowing conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

from unicorn_binance_local_depth_cache.manager import BinanceLocalDepthCacheManager, DepthCacheOutOfSync
import logging
import unittest
import os
import time

logging.getLogger("unicorn_binance_local_depth_cache")
logging.basicConfig(level=logging.DEBUG,
                    filename=os.path.basename(__file__) + '.log',
                    format="{asctime} [{levelname:8}] {process} {thread} {module}: {message}",
                    style="{")

print(f"Starting unittests:")

UBLDC = BinanceLocalDepthCacheManager(exchange="binance.com")
UBLDC_FUTURES = BinanceLocalDepthCacheManager(exchange="binance.com-futures")


class TestUbldc(unittest.TestCase):
    def setUp(self):
        self.ubldc = UBLDC
        self.ubldc_futures = UBLDC_FUTURES
        self.items = {'0.00204980': 39.05, '0.00204990': 1.63, '0.00205050': 158.68, '0.00205060': 81.97,
                      '0.00205080': 32.5, '0.00205090': 16.74, '0.00205100': 149.34, '0.00205110': 6.68,
                      '0.00205140': 16.77, '0.00205150': 50.0, '0.00205170': 17.1, '0.00205180': 20.04,
                      '0.00205190': 54.93, '0.00205200': 192.59, '0.00205210': 286.96, '0.00205220': 156.73,
                      '0.00205250': 231.43, '0.00205260': 156.4, '0.00205270': 547.8, '0.00205390': 500.0,
                      '0.00205410': 111.53, '0.00205450': 0.14, '0.00205480': 591.22, '0.00205500': 5.0,
                      '0.00205510': 232.92, '0.00205520': 0.09, '0.00205540': 0.1, '0.00205590': 0.74,
                      '0.00205600': 111.6, '0.00205620': 3.0, '0.00205650': 0.09, '0.00205680': 0.35,
                      '0.00205690': 0.18, '0.00205700': 0.33, '0.00205730': 0.1, '0.00205780': 1.08, '0.00205790': 0.16,
                      '0.00205800': 2.26, '0.00205820': 291.2, '0.00205840': 0.31, '0.00205850': 0.93,
                      '0.00205860': 3.13, '0.00205870': 12.29, '0.00205900': 0.89, '0.00205910': 0.9, '0.00205920': 0.1,
                      '0.00205940': 2694.4, '0.00205970': 0.08, '0.00206000': 0.82, '0.00206020': 0.84,
                      '0.00206030': 0.95, '0.00206070': 1.85, '0.00206080': 1.48, '0.00206100': 4.85,
                      '0.00206110': 0.86, '0.00206120': 1.42, '0.00206130': 1.35, '0.00206140': 0.13,
                      '0.00206150': 1001.03, '0.00206160': 3.51, '0.00206170': 2.46, '0.00206180': 0.22,
                      '0.00206190': 0.42, '0.00206200': 1.33, '0.00206210': 0.1, '0.00206250': 3.0, '0.00206260': 0.32,
                      '0.00206270': 0.37, '0.00206280': 0.19, '0.00206290': 0.09, '0.00206300': 0.45,
                      '0.00206320': 2.93, '0.00206360': 3.78, '0.00206370': 3.37, '0.00206390': 5.63,
                      '0.00206400': 0.73, '0.00206410': 0.21, '0.00206420': 0.43, '0.00206440': 0.28, '0.00206450': 1.0,
                      '0.00206460': 0.27, '0.00206470': 1.62, '0.00206480': 0.1, '0.00206490': 0.12, '0.00206500': 0.37,
                      '0.00206510': 0.12, '0.00206520': 0.11, '0.00206530': 0.94, '0.00206540': 0.08,
                      '0.00206550': 2.66, '0.00206570': 0.25, '0.00206580': 0.3, '0.00206590': 0.23, '0.00206600': 0.93,
                      '0.00206610': 37.26, '0.00206620': 0.2, '0.00206640': 1.2, '0.00206650': 0.73, '0.00206660': 2.15,
                      '0.00206670': 0.88, '0.00206680': 1.48, '0.00206690': 0.44, '0.00206700': 3.8, '0.00206710': 0.07,
                      '0.00206720': 1.41, '0.00206740': 0.35, '0.00206750': 344.17, '0.00206760': 0.57,
                      '0.00206790': 0.84, '0.00206800': 5.54, '0.00206820': 0.1, '0.00206830': 2.88, '0.00206840': 0.09,
                      '0.00206850': 0.1, '0.00206860': 0.33, '0.00206870': 3.86, '0.00206880': 54.72,
                      '0.00206900': 1.03, '0.00206910': 0.3, '0.00206920': 2.45, '0.00206930': 4.03, '0.00206940': 0.51,
                      '0.00206950': 2.55, '0.00206970': 0.24, '0.00206980': 14.2, '0.00207000': 10.86,
                      '0.00207010': 0.06, '0.00207030': 0.07, '0.00207040': 0.55, '0.00207060': 0.1, '0.00207080': 0.6,
                      '0.00207090': 0.27, '0.00207100': 0.41, '0.00207110': 361.15, '0.00207120': 91.12,
                      '0.00207130': 0.12, '0.00207140': 2.85, '0.00207160': 0.94, '0.00207170': 0.31, '0.00207210': 1.0,
                      '0.00207220': 0.22, '0.00207230': 1.26, '0.00207250': 0.21, '0.00207260': 0.43,
                      '0.00207270': 0.94, '0.00207290': 3.78, '0.00207300': 0.4, '0.00207310': 1.35, '0.00207320': 0.76,
                      '0.00207330': 0.13, '0.00207350': 1.01, '0.00207360': 0.51, '0.00207380': 0.11,
                      '0.00207400': 3.24, '0.00207410': 1.6, '0.00207420': 5.11, '0.00207430': 0.38, '0.00207440': 1.5,
                      '0.00207450': 1.21, '0.00207460': 0.98, '0.00207470': 2.11, '0.00207480': 0.31,
                      '0.00207500': 3.43, '0.00207510': 2.75, '0.00207530': 3.3, '0.00207550': 1.34, '0.00207560': 0.94,
                      '0.00207570': 0.78, '0.00207580': 2.65, '0.00207600': 0.43, '0.00207610': 0.25,
                      '0.00207620': 0.93, '0.00207630': 1.74, '0.00207640': 0.99, '0.00207650': 1.33, '0.00207660': 0.1,
                      '0.00207670': 8.51, '0.00207680': 1153.64, '0.00207690': 3.33, '0.00207700': 3.46,
                      '0.00207710': 21.82, '0.00207730': 3.9, '0.00207740': 0.12, '0.00207750': 5.0, '0.00207760': 1.6,
                      '0.00207770': 1.0, '0.00207790': 0.2, '0.00207810': 0.16, '0.00207820': 0.2, '0.00207830': 0.1,
                      '0.00207860': 4.27, '0.00207880': 3.08, '0.00207900': 3.33, '0.00207910': 0.67,
                      '0.00207920': 0.21, '0.00207930': 2.78, '0.00207940': 0.24, '0.00207950': 0.43,
                      '0.00207960': 0.51, '0.00207980': 3.16, '0.00207990': 0.66, '0.00208000': 1.7, '0.00208010': 0.94,
                      '0.00208020': 376.14, '0.00208030': 0.34, '0.00208040': 2.49, '0.00208050': 0.45,
                      '0.00208070': 0.09, '0.00208080': 5.49, '0.00208090': 0.23, '0.00208100': 1.62,
                      '0.00208110': 3.06, '0.00208120': 3.0, '0.00208130': 1.16, '0.00208140': 1.63, '0.00208150': 1.53,
                      '0.00208160': 1.06, '0.00208170': 1.07, '0.00208180': 0.6, '0.00208200': 0.15, '0.00208210': 1.9,
                      '0.00208220': 1.1, '0.00208230': 0.09, '0.00208240': 2.46, '0.00208260': 0.09, '0.00208270': 0.17,
                      '0.00208290': 0.21, '0.00208300': 0.76, '0.00208310': 0.77, '0.00208320': 5.93,
                      '0.00208330': 0.99, '0.00208340': 2.88, '0.00208350': 1.58, '0.00208360': 0.23,
                      '0.00208380': 1.53, '0.00208390': 1.4, '0.00208400': 0.99, '0.00208410': 1.13, '0.00208430': 3.76,
                      '0.00208440': 34.7, '0.00208450': 1.31, '0.00208470': 0.7, '0.00208480': 3.32, '0.00208490': 0.59,
                      '0.00208500': 2.68, '0.00208520': 10.58, '0.00208530': 0.44, '0.00208550': 0.55,
                      '0.00208560': 0.36, '0.00208570': 0.19, '0.00208580': 0.07, '0.00208590': 0.78, '0.00208600': 0.1,
                      '0.00208610': 0.54, '0.00208620': 3.99, '0.00208650': 0.74, '0.00208660': 0.24,
                      '0.00208680': 3.47, '0.00208690': 1.14, '0.00208700': 1.03, '0.00208710': 0.26,
                      '0.00208720': 0.08, '0.00208730': 0.42, '0.00208740': 6.59, '0.00208750': 8.02,
                      '0.00208760': 5.34, '0.00208770': 4.69, '0.00208780': 1.25, '0.00208790': 0.11,
                      '0.00208800': 377.1, '0.00208810': 0.09, '0.00208820': 1.78, '0.00208830': 0.64,
                      '0.00208840': 0.2, '0.00208860': 1.87, '0.00208870': 0.07, '0.00208880': 24.99,
                      '0.00208890': 0.54, '0.00208900': 0.21, '0.00208940': 2.25, '0.00208950': 1.1, '0.00208960': 0.12,
                      '0.00208970': 0.1, '0.00208980': 0.91, '0.00208990': 0.5, '0.00209000': 11.08, '0.00209010': 0.19,
                      '0.00209040': 6.1, '0.00209060': 0.11, '0.00209070': 0.34, '0.00209090': 119.61,
                      '0.00209100': 1.11, '0.00209110': 0.59, '0.00209130': 0.71, '0.00209140': 1.16, '0.00209150': 1.4,
                      '0.00209160': 1.26, '0.00209170': 0.95, '0.00209180': 3.07, '0.00209190': 16.78,
                      '0.00209200': 1.31, '0.00209210': 0.55, '0.00209220': 0.43, '0.00209240': 0.91,
                      '0.00209250': 3.31, '0.00209270': 0.22, '0.00209280': 0.33, '0.00209290': 0.2,
                      '0.00209300': 11.07, '0.00209330': 2.96, '0.00209340': 0.67, '0.00209350': 0.52,
                      '0.00209370': 7.3, '0.00209380': 0.26, '0.00209390': 0.15, '0.00209400': 0.47, '0.00209410': 4.99,
                      '0.00209420': 0.2, '0.00209440': 0.71, '0.00209450': 7.71, '0.00209460': 0.26, '0.00209470': 0.37,
                      '0.00209480': 0.91, '0.00209490': 1.71, '0.00209500': 0.22, '0.00209520': 2.54,
                      '0.00209530': 7.01, '0.00209540': 0.76, '0.00209550': 3.47, '0.00209570': 373.47,
                      '0.00209580': 0.33, '0.00209590': 0.63, '0.00209600': 0.41, '0.00209610': 0.92,
                      '0.00209620': 0.25, '0.00209640': 0.11, '0.00209680': 0.13, '0.00209690': 0.16,
                      '0.00209700': 1.34, '0.00209710': 1.63, '0.00209720': 0.14, '0.00209730': 0.09,
                      '0.00209740': 6.43, '0.00209750': 2.33, '0.00209760': 0.71, '0.00209790': 1.3, '0.00209800': 4.09,
                      '0.00209820': 0.21, '0.00209830': 0.21, '0.00209840': 1.22, '0.00209850': 1.6, '0.00209860': 0.99,
                      '0.00209870': 0.93, '0.00209890': 53.21, '0.00209900': 0.84, '0.00209910': 3.59,
                      '0.00209920': 1.3, '0.00209930': 5.01, '0.00209940': 0.53, '0.00209950': 1.4, '0.00209980': 3.57,
                      '0.00209990': 1.12, '0.00210000': 54.4, '0.00210010': 0.33, '0.00210030': 3.3, '0.00210040': 0.63,
                      '0.00210050': 0.4, '0.00210060': 0.26, '0.00210080': 5.9, '0.00210090': 0.33, '0.00210100': 2.72,
                      '0.00210110': 0.71, '0.00210120': 1.14, '0.00210130': 3.79, '0.00210140': 0.35,
                      '0.00210150': 0.09, '0.00210180': 1.41, '0.00210190': 0.26, '0.00210200': 0.72,
                      '0.00210210': 0.21, '0.00210230': 4.92, '0.00210250': 0.36, '0.00210260': 13.58,
                      '0.00210280': 1.02, '0.00210300': 0.16, '0.00210310': 3.31, '0.00210320': 1.57,
                      '0.00210330': 1.25, '0.00210340': 0.11, '0.00210350': 0.42, '0.00210360': 0.12,
                      '0.00210380': 6.91, '0.00210390': 0.31, '0.00210400': 0.13, '0.00210420': 0.15,
                      '0.00210430': 1.24, '0.00210440': 0.65, '0.00210450': 0.98, '0.00210460': 4.95,
                      '0.00210470': 3.09, '0.00210480': 0.2, '0.00210490': 1.97, '0.00210500': 0.42, '0.00210520': 0.42,
                      '0.00210530': 0.88, '0.00210540': 1.06, '0.00210560': 0.33, '0.00210570': 0.61, '0.00210580': 0.1,
                      '0.00210590': 1.4, '0.00210600': 0.08, '0.00210610': 1.31, '0.00210620': 1.5, '0.00210630': 0.1,
                      '0.00210640': 0.93, '0.00210650': 1.29, '0.00210670': 1.41, '0.00210680': 2.4,
                      '0.00210690': 16.56, '0.00210700': 2.5, '0.00210710': 2.48, '0.00210720': 0.93, '0.00210750': 4.8,
                      '0.00210760': 0.59, '0.00210770': 1.14, '0.00210780': 0.09, '0.00210790': 0.62,
                      '0.00210800': 0.64, '0.00210810': 4.55, '0.00210820': 1.5, '0.00210840': 3.95, '0.00210850': 4.25,
                      '0.00210860': 1.32, '0.00210880': 0.35, '0.00210890': 3.69, '0.00210900': 0.09,
                      '0.00210910': 4.61, '0.00210920': 0.19, '0.00210930': 0.43, '0.00210940': 0.22,
                      '0.00210960': 0.45, '0.00210970': 0.3, '0.00210980': 0.6, '0.00210990': 0.09, '0.00211000': 15.43,
                      '0.00211010': 0.2, '0.00211030': 1.45, '0.00211040': 0.3, '0.00211050': 6.74, '0.00211060': 0.38,
                      '0.00211070': 2.31, '0.00211080': 0.62, '0.00211090': 7.66, '0.00211100': 0.91,
                      '0.00211110': 2.24, '0.00211120': 0.24, '0.00211140': 2.41, '0.00211150': 0.77,
                      '0.00211190': 0.25, '0.00211200': 0.28, '0.00211210': 3.65, '0.00211230': 0.89,
                      '0.00211240': 1.28, '0.00211250': 0.43, '0.00211260': 1.27, '0.00211280': 0.43, '0.00211290': 0.2,
                      '0.00211310': 0.97, '0.00211320': 0.08, '0.00211330': 0.11, '0.00211340': 0.95,
                      '0.00211350': 0.13, '0.00211360': 0.41, '0.00211370': 1.21, '0.00211380': 1.47,
                      '0.00211410': 8.24, '0.00211420': 1.15, '0.00211430': 7.0, '0.00211440': 2.48, '0.00211450': 0.55,
                      '0.00211460': 4.44, '0.00211470': 3.05, '0.00211480': 0.13, '0.00211490': 0.13,
                      '0.00211500': 53.84, '0.00211510': 2.22, '0.00211520': 0.9, '0.00211540': 3.08,
                      '0.00211550': 6.19, '0.00211560': 0.1, '0.00211570': 0.11, '0.00211590': 3.27, '0.00211600': 1.59,
                      '0.00211620': 1.02, '0.00211630': 0.61, '0.00211640': 0.27, '0.00211650': 6.04,
                      '0.00211660': 6.61, '0.00211670': 0.52, '0.00211690': 0.33, '0.00211700': 0.46,
                      '0.00211710': 4.11, '0.00211720': 5.72, '0.00211740': 1.9, '0.00211750': 1.41, '0.00211760': 2.25,
                      '0.00211770': 0.46, '0.00211780': 1.66, '0.00211790': 3.32, '0.00211800': 1.13,
                      '0.00211810': 1.32, '0.00211820': 0.44, '0.00211830': 3.83, '0.00211840': 2.35,
                      '0.00211850': 2.53, '0.00211880': 0.98, '0.00211890': 0.7, '0.00211900': 5.87, '0.00211910': 1.05,
                      '0.00211920': 369.59, '0.00211930': 0.16, '0.00211940': 4.04, '0.00211950': 0.13,
                      '0.00211980': 0.57, '0.00211990': 12.92, '0.00212000': 9.52, '0.00212010': 3.56,
                      '0.00212020': 1.62, '0.00212040': 0.9, '0.00212050': 1.4, '0.00212060': 0.93, '0.00212080': 3.1,
                      '0.00212090': 0.42, '0.00212100': 10.26, '0.00212110': 0.51, '0.00212120': 1.56,
                      '0.00212130': 0.42, '0.00212140': 1.51, '0.00212150': 1.53, '0.00212160': 1.86,
                      '0.00212170': 0.33, '0.00212190': 16.42, '0.00212200': 4.54, '0.00212210': 13.49,
                      '0.00212220': 3.71, '0.00212230': 8.2, '0.00212240': 8.21, '0.00212250': 2.96, '0.00212260': 0.6,
                      '0.00212270': 0.09, '0.00212280': 7.55, '0.00212290': 0.35, '0.00212300': 2.27,
                      '0.00212320': 5.28, '0.00212340': 0.11, '0.00212350': 1.31, '0.00212370': 0.22,
                      '0.00212380': 4.38, '0.00212390': 0.54, '0.00212400': 0.09, '0.00212420': 4.02, '0.00212430': 0.4,
                      '0.00212440': 5.18, '0.00212450': 3.13, '0.00212460': 1.62, '0.00212470': 0.76, '0.00212480': 0.1,
                      '0.00212490': 1.1, '0.00212500': 0.31, '0.00212510': 0.21, '0.00212530': 6.08, '0.00212540': 0.45,
                      '0.00212550': 0.19, '0.00212560': 0.98, '0.00212570': 5.08, '0.00212580': 1.02,
                      '0.00212600': 2.27, '0.00212620': 0.88, '0.00212630': 0.16, '0.00212640': 0.45,
                      '0.00212650': 0.38, '0.00212660': 1.3, '0.00212670': 0.9, '0.00212680': 2.92, '0.00212690': 1.92,
                      '0.00212700': 367.96, '0.00212710': 0.56, '0.00212720': 0.34, '0.00212730': 3.07,
                      '0.00212740': 1.78, '0.00212760': 0.09, '0.00212770': 4.78, '0.00212780': 0.12,
                      '0.00212800': 1.36, '0.00212830': 1.04, '0.00212840': 0.2, '0.00212850': 0.45, '0.00212860': 0.37,
                      '0.00212870': 1.1, '0.00212880': 3.79, '0.00212890': 0.13, '0.00212900': 1.52, '0.00212910': 1.2,
                      '0.00212920': 1.31, '0.00212930': 4.62, '0.00212960': 12.49, '0.00212970': 1.42,
                      '0.00212980': 1.52, '0.00212990': 5.48, '0.00213000': 86.01, '0.00213020': 0.33,
                      '0.00213030': 0.11, '0.00213040': 0.3, '0.00213060': 0.13, '0.00213070': 6.83, '0.00213080': 0.42,
                      '0.00213110': 0.53, '0.00213120': 2.96, '0.00213130': 0.54, '0.00213140': 2.65,
                      '0.00213150': 1.15, '0.00213160': 0.13, '0.00213170': 3.34, '0.00213180': 0.38,
                      '0.00213190': 3.66, '0.00213200': 1.26, '0.00213210': 453.67, '0.00213220': 16.18,
                      '0.00213230': 1.42, '0.00213240': 0.83, '0.00213250': 2.53, '0.00213260': 7.16,
                      '0.00213270': 29.1, '0.00213280': 0.4, '0.00213290': 1.13, '0.00213300': 1167.47,
                      '0.00213310': 0.17, '0.00213320': 1.32, '0.00213330': 2.2, '0.00213350': 5.23, '0.00213360': 2.6,
                      '0.00213370': 0.6, '0.00213380': 2.22, '0.00213390': 0.06, '0.00213400': 5.87, '0.00213420': 0.09,
                      '0.00213430': 0.12, '0.00213440': 1.15, '0.00213450': 2.05, '0.00213460': 7.86,
                      '0.00213470': 1.33, '0.00213480': 0.09, '0.00213500': 384.61, '0.00213510': 1.64,
                      '0.00213520': 0.11, '0.00213530': 4.54, '0.00213540': 5.2, '0.00213550': 0.43, '0.00213560': 0.09,
                      '0.00213570': 0.56, '0.00213580': 0.07, '0.00213590': 1.29, '0.00213600': 2.5, '0.00213610': 1.88,
                      '0.00213620': 1.03, '0.00213630': 4.84, '0.00213640': 0.11, '0.00213650': 1.94,
                      '0.00213660': 0.09, '0.00213670': 2.61, '0.00213680': 1.06, '0.00213690': 3.8,
                      '0.00213700': 50.99, '0.00213710': 1.15, '0.00213720': 0.38, '0.00213730': 2.76,
                      '0.00213750': 2.18, '0.00213760': 1.44, '0.00213770': 5.02, '0.00213780': 1.99,
                      '0.00213790': 1.78, '0.00213810': 0.35, '0.00213820': 0.22, '0.00213900': 0.15,
                      '0.00213910': 0.44, '0.00213920': 2.25, '0.00213930': 0.34, '0.00213940': 3.33,
                      '0.00213950': 0.33, '0.00213960': 0.34, '0.00213970': 7.19, '0.00213990': 5.01,
                      '0.00214000': 16.38, '0.00214010': 1.37, '0.00214020': 3.67, '0.00214030': 0.19,
                      '0.00214050': 0.09, '0.00214060': 0.13, '0.00214070': 0.7, '0.00214090': 1.19, '0.00214100': 3.33,
                      '0.00214110': 0.55, '0.00214120': 1.44, '0.00214130': 0.39, '0.00214140': 11.24,
                      '0.00214150': 4.33, '0.00214160': 0.18, '0.00214190': 0.38, '0.00214200': 0.83,
                      '0.00214210': 0.68, '0.00214220': 2.03, '0.00214230': 0.75, '0.00214240': 0.43,
                      '0.00214250': 1.51, '0.00214260': 0.61, '0.00214270': 1.22, '0.00214280': 0.16,
                      '0.00214290': 365.15, '0.00214300': 0.13, '0.00214310': 2.66, '0.00214320': 0.33,
                      '0.00214330': 0.89, '0.00214340': 103.84, '0.00214350': 4.47, '0.00214360': 1.12,
                      '0.00214370': 0.85, '0.00214390': 14.62, '0.00214400': 1.2, '0.00214410': 3.59, '0.00214420': 1.5,
                      '0.00214430': 5.63, '0.00214440': 1.47, '0.00214450': 0.27, '0.00214460': 3.04,
                      '0.00214470': 0.09, '0.00214480': 1.14, '0.00214490': 0.31, '0.00214500': 4.18,
                      '0.00214510': 0.38, '0.00214520': 1.53, '0.00214530': 0.18, '0.00214540': 18.19,
                      '0.00214550': 1.36, '0.00214560': 25.11, '0.00214570': 10.19, '0.00214580': 0.91,
                      '0.00214590': 1.0, '0.00214600': 0.6, '0.00214610': 0.9, '0.00214620': 0.63, '0.00214630': 0.75,
                      '0.00214640': 0.33, '0.00214660': 0.13, '0.00214670': 2.54, '0.00214680': 23.22,
                      '0.00214690': 0.67, '0.00214700': 0.09, '0.00214710': 0.12, '0.00214720': 0.27,
                      '0.00214730': 0.09, '0.00214740': 48.8, '0.00214760': 3.41, '0.00214770': 0.07,
                      '0.00214780': 6.21, '0.00214790': 0.57, '0.00214800': 3.84, '0.00214820': 0.85,
                      '0.00214830': 6.64, '0.00214840': 0.49, '0.00214850': 0.42, '0.00214860': 1.12,
                      '0.00214870': 6.58, '0.00214880': 1.84, '0.00214890': 0.08, '0.00214900': 1.31, '0.00214910': 2.5,
                      '0.00214920': 0.22, '0.00214930': 43.82, '0.00214940': 6.38, '0.00214960': 3.94,
                      '0.00214980': 2.88, '0.00214990': 1.25, '0.00215000': 31.03, '0.00215010': 0.2,
                      '0.00215020': 0.98, '0.00215030': 0.24, '0.00215040': 1.15, '0.00215050': 1.17,
                      '0.00215060': 2.55, '0.00215080': 135.25, '0.00215090': 4.07, '0.00215100': 0.59,
                      '0.00215110': 2.55, '0.00215120': 0.13, '0.00215140': 0.16, '0.00215150': 0.25,
                      '0.00215160': 12.52, '0.00215170': 19.41, '0.00215180': 0.44, '0.00215190': 8.88,
                      '0.00215200': 1.07, '0.00215210': 7.04, '0.00215220': 0.12, '0.00215230': 17.15,
                      '0.00215240': 0.09, '0.00215260': 1.7, '0.00215270': 1.34, '0.00215280': 0.54, '0.00215300': 2.09,
                      '0.00215310': 0.21, '0.00215320': 3.62, '0.00215330': 1.26, '0.00215340': 1.36,
                      '0.00215360': 0.21, '0.00215370': 2.04, '0.00215380': 2.78, '0.00215390': 0.53,
                      '0.00215400': 1.02, '0.00215410': 2.45, '0.00215420': 0.15, '0.00215440': 0.15, '0.00215450': 0.2,
                      '0.00215460': 0.24, '0.00215470': 1.48, '0.00215480': 0.46, '0.00215500': 3.64,
                      '0.00215510': 4.72, '0.00215520': 3.69, '0.00215530': 0.1, '0.00215540': 0.52, '0.00215550': 1.94,
                      '0.00215560': 3.21, '0.00215570': 0.32, '0.00215580': 0.79, '0.00215590': 0.08,
                      '0.00215600': 1.54, '0.00215620': 0.36, '0.00215630': 0.2, '0.00215640': 9.23, '0.00215650': 0.99,
                      '0.00215660': 3.22, '0.00215670': 0.3, '0.00215680': 0.1, '0.00215690': 2.99, '0.00215700': 1.61,
                      '0.00215710': 2.35, '0.00215720': 1.66, '0.00215730': 0.2, '0.00215740': 2.84, '0.00215750': 1.07,
                      '0.00215770': 1.11, '0.00215780': 0.89, '0.00215790': 0.29, '0.00215800': 10.68,
                      '0.00215810': 0.12, '0.00215820': 0.43, '0.00215840': 0.96, '0.00215860': 1.34,
                      '0.00215880': 363.14, '0.00215890': 0.27, '0.00215900': 26.96, '0.00215910': 0.59,
                      '0.00215920': 0.33, '0.00215930': 0.36, '0.00215940': 0.74, '0.00215950': 0.57,
                      '0.00215960': 1.19, '0.00215970': 0.29, '0.00216000': 4.76, '0.00216010': 0.74,
                      '0.00216020': 10.38, '0.00216040': 5.62, '0.00216050': 1.98, '0.00216060': 0.43,
                      '0.00216070': 0.79, '0.00216080': 1.31, '0.00216090': 1.27, '0.00216100': 2.34,
                      '0.00216110': 1.15, '0.00216120': 2.87, '0.00216130': 22.94, '0.00216140': 1.3,
                      '0.00216150': 0.09, '0.00216160': 0.8, '0.00216170': 4.53, '0.00216180': 0.32,
                      '0.00216200': 125.35, '0.00216210': 0.7, '0.00216220': 5.0, '0.00216230': 0.09,
                      '0.00216250': 0.44, '0.00216260': 0.09, '0.00216300': 4.08, '0.00216310': 24.35,
                      '0.00216360': 3.51, '0.00216380': 2.75, '0.00216400': 2.53, '0.00216410': 0.67,
                      '0.00216420': 1.03, '0.00216440': 0.29, '0.00216450': 1.86, '0.00216460': 0.33,
                      '0.00216470': 2.31, '0.00216480': 0.21, '0.00216490': 0.23, '0.00216500': 86.44,
                      '0.00216510': 1.95, '0.00216520': 0.92, '0.00216530': 3.31, '0.00216540': 1.79,
                      '0.00216550': 1.07, '0.00216560': 2.77, '0.00216580': 0.37, '0.00216590': 0.66,
                      '0.00216600': 1.16, '0.00216640': 2.58, '0.00216650': 0.2, '0.00216660': 2.29, '0.00216670': 0.11,
                      '0.00216680': 361.17, '0.00216690': 0.36, '0.00216710': 0.8, '0.00216740': 0.65,
                      '0.00216750': 2.81, '0.00216760': 16.56, '0.00216770': 0.52, '0.00216780': 0.81,
                      '0.00216790': 1.02, '0.00216800': 1.8, '0.00216810': 0.32, '0.00216820': 0.65, '0.00216830': 1.35,
                      '0.00216840': 1.26, '0.00216850': 1.0, '0.00216860': 1.17, '0.00216870': 1.51, '0.00216880': 2.46,
                      '0.00216890': 1.63, '0.00216900': 17.81, '0.00216920': 0.66, '0.00216930': 0.22,
                      '0.00216940': 18.99, '0.00216960': 1.6, '0.00216970': 3.49, '0.00216980': 0.46, '0.00216990': 2.6,
                      '0.00217000': 206.82, '0.00217020': 0.65, '0.00217030': 0.8, '0.00217040': 0.65,
                      '0.00217050': 0.1, '0.00217070': 0.45, '0.00217080': 0.66, '0.00217090': 5.02, '0.00217100': 1.81,
                      '0.00217120': 0.95, '0.00217130': 1.89, '0.00217140': 1.93, '0.00217150': 5.99,
                      '0.00217160': 0.29, '0.00217170': 3.19, '0.00217180': 6.22, '0.00217190': 1.51,
                      '0.00217200': 3.26, '0.00217210': 1.3, '0.00217230': 1.39, '0.00217240': 0.84, '0.00217250': 3.62,
                      '0.00217260': 2.49, '0.00217280': 0.14, '0.00217290': 2.23, '0.00217300': 2.03,
                      '0.00217310': 0.62, '0.00217330': 0.44, '0.00217340': 3.47, '0.00217350': 1.13,
                      '0.00217360': 0.29, '0.00217370': 1.1, '0.00217390': 1.85, '0.00217410': 1.09, '0.00217420': 6.42,
                      '0.00217430': 0.22, '0.00217440': 258.32, '0.00217450': 2.35, '0.00217460': 0.09,
                      '0.00217470': 1.2, '0.00217490': 363.51, '0.00217500': 3.7, '0.00217510': 6.92,
                      '0.00217520': 0.06, '0.00217540': 0.65, '0.00217550': 0.1, '0.00217560': 1.63, '0.00217570': 0.33,
                      '0.00217580': 0.22, '0.00217590': 5.86, '0.00217600': 1.06, '0.00217610': 0.09, '0.00217620': 1.2,
                      '0.00217630': 2.35}

        self.assert_list = [[0.0020498, 39.05], [0.0020499, 1.63], [0.0020505, 158.68], [0.0020506, 81.97],
                            [0.0020508, 32.5], [0.0020509, 16.74], [0.002051, 149.34], [0.0020511, 6.68],
                            [0.0020514, 16.77], [0.0020515, 50.0], [0.0020517, 17.1], [0.0020518, 20.04],
                            [0.0020519, 54.93], [0.002052, 192.59], [0.0020521, 286.96], [0.0020522, 156.73],
                            [0.0020525, 231.43], [0.0020526, 156.4], [0.0020527, 547.8], [0.0020539, 500.0],
                            [0.0020541, 111.53], [0.0020545, 0.14], [0.0020548, 591.22], [0.002055, 5.0],
                            [0.0020551, 232.92], [0.0020552, 0.09], [0.0020554, 0.1], [0.0020559, 0.74],
                            [0.002056, 111.6], [0.0020562, 3.0], [0.0020565, 0.09], [0.0020568, 0.35],
                            [0.0020569, 0.18], [0.002057, 0.33], [0.0020573, 0.1], [0.0020578, 1.08], [0.0020579, 0.16],
                            [0.002058, 2.26], [0.0020582, 291.2], [0.0020584, 0.31], [0.0020585, 0.93],
                            [0.0020586, 3.13], [0.0020587, 12.29], [0.002059, 0.89], [0.0020591, 0.9], [0.0020592, 0.1],
                            [0.0020594, 2694.4], [0.0020597, 0.08], [0.00206, 0.82], [0.0020602, 0.84],
                            [0.0020603, 0.95], [0.0020607, 1.85], [0.0020608, 1.48], [0.002061, 4.85],
                            [0.0020611, 0.86], [0.0020612, 1.42], [0.0020613, 1.35], [0.0020614, 0.13],
                            [0.0020615, 1001.03], [0.0020616, 3.51], [0.0020617, 2.46], [0.0020618, 0.22],
                            [0.0020619, 0.42], [0.002062, 1.33], [0.0020621, 0.1], [0.0020625, 3.0], [0.0020626, 0.32],
                            [0.0020627, 0.37], [0.0020628, 0.19], [0.0020629, 0.09], [0.002063, 0.45],
                            [0.0020632, 2.93], [0.0020636, 3.78], [0.0020637, 3.37], [0.0020639, 5.63],
                            [0.002064, 0.73], [0.0020641, 0.21], [0.0020642, 0.43], [0.0020644, 0.28], [0.0020645, 1.0],
                            [0.0020646, 0.27], [0.0020647, 1.62], [0.0020648, 0.1], [0.0020649, 0.12], [0.002065, 0.37],
                            [0.0020651, 0.12], [0.0020652, 0.11], [0.0020653, 0.94], [0.0020654, 0.08],
                            [0.0020655, 2.66], [0.0020657, 0.25], [0.0020658, 0.3], [0.0020659, 0.23], [0.002066, 0.93],
                            [0.0020661, 37.26], [0.0020662, 0.2], [0.0020664, 1.2], [0.0020665, 0.73],
                            [0.0020666, 2.15], [0.0020667, 0.88], [0.0020668, 1.48], [0.0020669, 0.44], [0.002067, 3.8],
                            [0.0020671, 0.07], [0.0020672, 1.41], [0.0020674, 0.35], [0.0020675, 344.17],
                            [0.0020676, 0.57], [0.0020679, 0.84], [0.002068, 5.54], [0.0020682, 0.1], [0.0020683, 2.88],
                            [0.0020684, 0.09], [0.0020685, 0.1], [0.0020686, 0.33], [0.0020687, 3.86],
                            [0.0020688, 54.72], [0.002069, 1.03], [0.0020691, 0.3], [0.0020692, 2.45],
                            [0.0020693, 4.03], [0.0020694, 0.51], [0.0020695, 2.55], [0.0020697, 0.24],
                            [0.0020698, 14.2], [0.00207, 10.86], [0.0020701, 0.06], [0.0020703, 0.07],
                            [0.0020704, 0.55], [0.0020706, 0.1], [0.0020708, 0.6], [0.0020709, 0.27], [0.002071, 0.41],
                            [0.0020711, 361.15], [0.0020712, 91.12], [0.0020713, 0.12], [0.0020714, 2.85],
                            [0.0020716, 0.94], [0.0020717, 0.31], [0.0020721, 1.0], [0.0020722, 0.22],
                            [0.0020723, 1.26], [0.0020725, 0.21], [0.0020726, 0.43], [0.0020727, 0.94],
                            [0.0020729, 3.78], [0.002073, 0.4], [0.0020731, 1.35], [0.0020732, 0.76], [0.0020733, 0.13],
                            [0.0020735, 1.01], [0.0020736, 0.51], [0.0020738, 0.11], [0.002074, 3.24], [0.0020741, 1.6],
                            [0.0020742, 5.11], [0.0020743, 0.38], [0.0020744, 1.5], [0.0020745, 1.21],
                            [0.0020746, 0.98], [0.0020747, 2.11], [0.0020748, 0.31], [0.002075, 3.43],
                            [0.0020751, 2.75], [0.0020753, 3.3], [0.0020755, 1.34], [0.0020756, 0.94],
                            [0.0020757, 0.78], [0.0020758, 2.65], [0.002076, 0.43], [0.0020761, 0.25],
                            [0.0020762, 0.93], [0.0020763, 1.74], [0.0020764, 0.99], [0.0020765, 1.33],
                            [0.0020766, 0.1], [0.0020767, 8.51], [0.0020768, 1153.64], [0.0020769, 3.33],
                            [0.002077, 3.46], [0.0020771, 21.82], [0.0020773, 3.9], [0.0020774, 0.12], [0.0020775, 5.0],
                            [0.0020776, 1.6], [0.0020777, 1.0], [0.0020779, 0.2], [0.0020781, 0.16], [0.0020782, 0.2],
                            [0.0020783, 0.1], [0.0020786, 4.27], [0.0020788, 3.08], [0.002079, 3.33], [0.0020791, 0.67],
                            [0.0020792, 0.21], [0.0020793, 2.78], [0.0020794, 0.24], [0.0020795, 0.43],
                            [0.0020796, 0.51], [0.0020798, 3.16], [0.0020799, 0.66], [0.00208, 1.7], [0.0020801, 0.94],
                            [0.0020802, 376.14], [0.0020803, 0.34], [0.0020804, 2.49], [0.0020805, 0.45],
                            [0.0020807, 0.09], [0.0020808, 5.49], [0.0020809, 0.23], [0.002081, 1.62],
                            [0.0020811, 3.06], [0.0020812, 3.0], [0.0020813, 1.16], [0.0020814, 1.63],
                            [0.0020815, 1.53], [0.0020816, 1.06], [0.0020817, 1.07], [0.0020818, 0.6], [0.002082, 0.15],
                            [0.0020821, 1.9], [0.0020822, 1.1], [0.0020823, 0.09], [0.0020824, 2.46], [0.0020826, 0.09],
                            [0.0020827, 0.17], [0.0020829, 0.21], [0.002083, 0.76], [0.0020831, 0.77],
                            [0.0020832, 5.93], [0.0020833, 0.99], [0.0020834, 2.88], [0.0020835, 1.58],
                            [0.0020836, 0.23], [0.0020838, 1.53], [0.0020839, 1.4], [0.002084, 0.99], [0.0020841, 1.13],
                            [0.0020843, 3.76], [0.0020844, 34.7], [0.0020845, 1.31], [0.0020847, 0.7],
                            [0.0020848, 3.32], [0.0020849, 0.59], [0.002085, 2.68], [0.0020852, 10.58],
                            [0.0020853, 0.44], [0.0020855, 0.55], [0.0020856, 0.36], [0.0020857, 0.19],
                            [0.0020858, 0.07], [0.0020859, 0.78], [0.002086, 0.1], [0.0020861, 0.54], [0.0020862, 3.99],
                            [0.0020865, 0.74], [0.0020866, 0.24], [0.0020868, 3.47], [0.0020869, 1.14],
                            [0.002087, 1.03], [0.0020871, 0.26], [0.0020872, 0.08], [0.0020873, 0.42],
                            [0.0020874, 6.59], [0.0020875, 8.02], [0.0020876, 5.34], [0.0020877, 4.69],
                            [0.0020878, 1.25], [0.0020879, 0.11], [0.002088, 377.1], [0.0020881, 0.09],
                            [0.0020882, 1.78], [0.0020883, 0.64], [0.0020884, 0.2], [0.0020886, 1.87],
                            [0.0020887, 0.07], [0.0020888, 24.99], [0.0020889, 0.54], [0.002089, 0.21],
                            [0.0020894, 2.25], [0.0020895, 1.1], [0.0020896, 0.12], [0.0020897, 0.1], [0.0020898, 0.91],
                            [0.0020899, 0.5], [0.00209, 11.08], [0.0020901, 0.19], [0.0020904, 6.1], [0.0020906, 0.11],
                            [0.0020907, 0.34], [0.0020909, 119.61], [0.002091, 1.11], [0.0020911, 0.59],
                            [0.0020913, 0.71], [0.0020914, 1.16], [0.0020915, 1.4], [0.0020916, 1.26],
                            [0.0020917, 0.95], [0.0020918, 3.07], [0.0020919, 16.78], [0.002092, 1.31],
                            [0.0020921, 0.55], [0.0020922, 0.43], [0.0020924, 0.91], [0.0020925, 3.31],
                            [0.0020927, 0.22], [0.0020928, 0.33], [0.0020929, 0.2], [0.002093, 11.07],
                            [0.0020933, 2.96], [0.0020934, 0.67], [0.0020935, 0.52], [0.0020937, 7.3],
                            [0.0020938, 0.26], [0.0020939, 0.15], [0.002094, 0.47], [0.0020941, 4.99], [0.0020942, 0.2],
                            [0.0020944, 0.71], [0.0020945, 7.71], [0.0020946, 0.26], [0.0020947, 0.37],
                            [0.0020948, 0.91], [0.0020949, 1.71], [0.002095, 0.22], [0.0020952, 2.54],
                            [0.0020953, 7.01], [0.0020954, 0.76], [0.0020955, 3.47], [0.0020957, 373.47],
                            [0.0020958, 0.33], [0.0020959, 0.63], [0.002096, 0.41], [0.0020961, 0.92],
                            [0.0020962, 0.25], [0.0020964, 0.11], [0.0020968, 0.13], [0.0020969, 0.16],
                            [0.002097, 1.34], [0.0020971, 1.63], [0.0020972, 0.14], [0.0020973, 0.09],
                            [0.0020974, 6.43], [0.0020975, 2.33], [0.0020976, 0.71], [0.0020979, 1.3], [0.002098, 4.09],
                            [0.0020982, 0.21], [0.0020983, 0.21], [0.0020984, 1.22], [0.0020985, 1.6],
                            [0.0020986, 0.99], [0.0020987, 0.93], [0.0020989, 53.21], [0.002099, 0.84],
                            [0.0020991, 3.59], [0.0020992, 1.3], [0.0020993, 5.01], [0.0020994, 0.53], [0.0020995, 1.4],
                            [0.0020998, 3.57], [0.0020999, 1.12], [0.0021, 54.4], [0.0021001, 0.33], [0.0021003, 3.3],
                            [0.0021004, 0.63], [0.0021005, 0.4], [0.0021006, 0.26], [0.0021008, 5.9], [0.0021009, 0.33],
                            [0.002101, 2.72], [0.0021011, 0.71], [0.0021012, 1.14], [0.0021013, 3.79],
                            [0.0021014, 0.35], [0.0021015, 0.09], [0.0021018, 1.41], [0.0021019, 0.26],
                            [0.002102, 0.72], [0.0021021, 0.21], [0.0021023, 4.92], [0.0021025, 0.36],
                            [0.0021026, 13.58], [0.0021028, 1.02], [0.002103, 0.16], [0.0021031, 3.31],
                            [0.0021032, 1.57], [0.0021033, 1.25], [0.0021034, 0.11], [0.0021035, 0.42],
                            [0.0021036, 0.12], [0.0021038, 6.91], [0.0021039, 0.31], [0.002104, 0.13],
                            [0.0021042, 0.15], [0.0021043, 1.24], [0.0021044, 0.65], [0.0021045, 0.98],
                            [0.0021046, 4.95], [0.0021047, 3.09], [0.0021048, 0.2], [0.0021049, 1.97], [0.002105, 0.42],
                            [0.0021052, 0.42], [0.0021053, 0.88], [0.0021054, 1.06], [0.0021056, 0.33],
                            [0.0021057, 0.61], [0.0021058, 0.1], [0.0021059, 1.4], [0.002106, 0.08], [0.0021061, 1.31],
                            [0.0021062, 1.5], [0.0021063, 0.1], [0.0021064, 0.93], [0.0021065, 1.29], [0.0021067, 1.41],
                            [0.0021068, 2.4], [0.0021069, 16.56], [0.002107, 2.5], [0.0021071, 2.48], [0.0021072, 0.93],
                            [0.0021075, 4.8], [0.0021076, 0.59], [0.0021077, 1.14], [0.0021078, 0.09],
                            [0.0021079, 0.62], [0.002108, 0.64], [0.0021081, 4.55], [0.0021082, 1.5], [0.0021084, 3.95],
                            [0.0021085, 4.25], [0.0021086, 1.32], [0.0021088, 0.35], [0.0021089, 3.69],
                            [0.002109, 0.09], [0.0021091, 4.61], [0.0021092, 0.19], [0.0021093, 0.43],
                            [0.0021094, 0.22], [0.0021096, 0.45], [0.0021097, 0.3], [0.0021098, 0.6], [0.0021099, 0.09],
                            [0.00211, 15.43], [0.0021101, 0.2], [0.0021103, 1.45], [0.0021104, 0.3], [0.0021105, 6.74],
                            [0.0021106, 0.38], [0.0021107, 2.31], [0.0021108, 0.62], [0.0021109, 7.66],
                            [0.002111, 0.91], [0.0021111, 2.24], [0.0021112, 0.24], [0.0021114, 2.41],
                            [0.0021115, 0.77], [0.0021119, 0.25], [0.002112, 0.28], [0.0021121, 3.65],
                            [0.0021123, 0.89], [0.0021124, 1.28], [0.0021125, 0.43], [0.0021126, 1.27],
                            [0.0021128, 0.43], [0.0021129, 0.2], [0.0021131, 0.97], [0.0021132, 0.08],
                            [0.0021133, 0.11], [0.0021134, 0.95], [0.0021135, 0.13], [0.0021136, 0.41],
                            [0.0021137, 1.21], [0.0021138, 1.47], [0.0021141, 8.24], [0.0021142, 1.15],
                            [0.0021143, 7.0], [0.0021144, 2.48], [0.0021145, 0.55], [0.0021146, 4.44],
                            [0.0021147, 3.05], [0.0021148, 0.13], [0.0021149, 0.13], [0.002115, 53.84],
                            [0.0021151, 2.22], [0.0021152, 0.9], [0.0021154, 3.08], [0.0021155, 6.19], [0.0021156, 0.1],
                            [0.0021157, 0.11], [0.0021159, 3.27], [0.002116, 1.59], [0.0021162, 1.02],
                            [0.0021163, 0.61], [0.0021164, 0.27], [0.0021165, 6.04], [0.0021166, 6.61],
                            [0.0021167, 0.52], [0.0021169, 0.33], [0.002117, 0.46], [0.0021171, 4.11],
                            [0.0021172, 5.72], [0.0021174, 1.9], [0.0021175, 1.41], [0.0021176, 2.25],
                            [0.0021177, 0.46], [0.0021178, 1.66], [0.0021179, 3.32], [0.002118, 1.13],
                            [0.0021181, 1.32], [0.0021182, 0.44], [0.0021183, 3.83], [0.0021184, 2.35],
                            [0.0021185, 2.53], [0.0021188, 0.98], [0.0021189, 0.7], [0.002119, 5.87], [0.0021191, 1.05],
                            [0.0021192, 369.59], [0.0021193, 0.16], [0.0021194, 4.04], [0.0021195, 0.13],
                            [0.0021198, 0.57], [0.0021199, 12.92], [0.00212, 9.52], [0.0021201, 3.56],
                            [0.0021202, 1.62], [0.0021204, 0.9], [0.0021205, 1.4], [0.0021206, 0.93], [0.0021208, 3.1],
                            [0.0021209, 0.42], [0.002121, 10.26], [0.0021211, 0.51], [0.0021212, 1.56],
                            [0.0021213, 0.42], [0.0021214, 1.51], [0.0021215, 1.53], [0.0021216, 1.86],
                            [0.0021217, 0.33], [0.0021219, 16.42], [0.002122, 4.54], [0.0021221, 13.49],
                            [0.0021222, 3.71], [0.0021223, 8.2], [0.0021224, 8.21], [0.0021225, 2.96], [0.0021226, 0.6],
                            [0.0021227, 0.09], [0.0021228, 7.55], [0.0021229, 0.35], [0.002123, 2.27],
                            [0.0021232, 5.28], [0.0021234, 0.11], [0.0021235, 1.31], [0.0021237, 0.22],
                            [0.0021238, 4.38], [0.0021239, 0.54], [0.002124, 0.09], [0.0021242, 4.02], [0.0021243, 0.4],
                            [0.0021244, 5.18], [0.0021245, 3.13], [0.0021246, 1.62], [0.0021247, 0.76],
                            [0.0021248, 0.1], [0.0021249, 1.1], [0.002125, 0.31], [0.0021251, 0.21], [0.0021253, 6.08],
                            [0.0021254, 0.45], [0.0021255, 0.19], [0.0021256, 0.98], [0.0021257, 5.08],
                            [0.0021258, 1.02], [0.002126, 2.27], [0.0021262, 0.88], [0.0021263, 0.16],
                            [0.0021264, 0.45], [0.0021265, 0.38], [0.0021266, 1.3], [0.0021267, 0.9], [0.0021268, 2.92],
                            [0.0021269, 1.92], [0.002127, 367.96], [0.0021271, 0.56], [0.0021272, 0.34],
                            [0.0021273, 3.07], [0.0021274, 1.78], [0.0021276, 0.09], [0.0021277, 4.78],
                            [0.0021278, 0.12], [0.002128, 1.36], [0.0021283, 1.04], [0.0021284, 0.2], [0.0021285, 0.45],
                            [0.0021286, 0.37], [0.0021287, 1.1], [0.0021288, 3.79], [0.0021289, 0.13], [0.002129, 1.52],
                            [0.0021291, 1.2], [0.0021292, 1.31], [0.0021293, 4.62], [0.0021296, 12.49],
                            [0.0021297, 1.42], [0.0021298, 1.52], [0.0021299, 5.48], [0.00213, 86.01],
                            [0.0021302, 0.33], [0.0021303, 0.11], [0.0021304, 0.3], [0.0021306, 0.13],
                            [0.0021307, 6.83], [0.0021308, 0.42], [0.0021311, 0.53], [0.0021312, 2.96],
                            [0.0021313, 0.54], [0.0021314, 2.65], [0.0021315, 1.15], [0.0021316, 0.13],
                            [0.0021317, 3.34], [0.0021318, 0.38], [0.0021319, 3.66], [0.002132, 1.26],
                            [0.0021321, 453.67], [0.0021322, 16.18], [0.0021323, 1.42], [0.0021324, 0.83],
                            [0.0021325, 2.53], [0.0021326, 7.16], [0.0021327, 29.1], [0.0021328, 0.4],
                            [0.0021329, 1.13], [0.002133, 1167.47], [0.0021331, 0.17], [0.0021332, 1.32],
                            [0.0021333, 2.2], [0.0021335, 5.23], [0.0021336, 2.6], [0.0021337, 0.6], [0.0021338, 2.22],
                            [0.0021339, 0.06], [0.002134, 5.87], [0.0021342, 0.09], [0.0021343, 0.12],
                            [0.0021344, 1.15], [0.0021345, 2.05], [0.0021346, 7.86], [0.0021347, 1.33],
                            [0.0021348, 0.09], [0.002135, 384.61], [0.0021351, 1.64], [0.0021352, 0.11],
                            [0.0021353, 4.54], [0.0021354, 5.2], [0.0021355, 0.43], [0.0021356, 0.09],
                            [0.0021357, 0.56], [0.0021358, 0.07], [0.0021359, 1.29], [0.002136, 2.5], [0.0021361, 1.88],
                            [0.0021362, 1.03], [0.0021363, 4.84], [0.0021364, 0.11], [0.0021365, 1.94],
                            [0.0021366, 0.09], [0.0021367, 2.61], [0.0021368, 1.06], [0.0021369, 3.8],
                            [0.002137, 50.99], [0.0021371, 1.15], [0.0021372, 0.38], [0.0021373, 2.76],
                            [0.0021375, 2.18], [0.0021376, 1.44], [0.0021377, 5.02], [0.0021378, 1.99],
                            [0.0021379, 1.78], [0.0021381, 0.35], [0.0021382, 0.22], [0.002139, 0.15],
                            [0.0021391, 0.44], [0.0021392, 2.25], [0.0021393, 0.34], [0.0021394, 3.33],
                            [0.0021395, 0.33], [0.0021396, 0.34], [0.0021397, 7.19], [0.0021399, 5.01],
                            [0.00214, 16.38], [0.0021401, 1.37], [0.0021402, 3.67], [0.0021403, 0.19],
                            [0.0021405, 0.09], [0.0021406, 0.13], [0.0021407, 0.7], [0.0021409, 1.19], [0.002141, 3.33],
                            [0.0021411, 0.55], [0.0021412, 1.44], [0.0021413, 0.39], [0.0021414, 11.24],
                            [0.0021415, 4.33], [0.0021416, 0.18], [0.0021419, 0.38], [0.002142, 0.83],
                            [0.0021421, 0.68], [0.0021422, 2.03], [0.0021423, 0.75], [0.0021424, 0.43],
                            [0.0021425, 1.51], [0.0021426, 0.61], [0.0021427, 1.22], [0.0021428, 0.16],
                            [0.0021429, 365.15], [0.002143, 0.13], [0.0021431, 2.66], [0.0021432, 0.33],
                            [0.0021433, 0.89], [0.0021434, 103.84], [0.0021435, 4.47], [0.0021436, 1.12],
                            [0.0021437, 0.85], [0.0021439, 14.62], [0.002144, 1.2], [0.0021441, 3.59], [0.0021442, 1.5],
                            [0.0021443, 5.63], [0.0021444, 1.47], [0.0021445, 0.27], [0.0021446, 3.04],
                            [0.0021447, 0.09], [0.0021448, 1.14], [0.0021449, 0.31], [0.002145, 4.18],
                            [0.0021451, 0.38], [0.0021452, 1.53], [0.0021453, 0.18], [0.0021454, 18.19],
                            [0.0021455, 1.36], [0.0021456, 25.11], [0.0021457, 10.19], [0.0021458, 0.91],
                            [0.0021459, 1.0], [0.002146, 0.6], [0.0021461, 0.9], [0.0021462, 0.63], [0.0021463, 0.75],
                            [0.0021464, 0.33], [0.0021466, 0.13], [0.0021467, 2.54], [0.0021468, 23.22],
                            [0.0021469, 0.67], [0.002147, 0.09], [0.0021471, 0.12], [0.0021472, 0.27],
                            [0.0021473, 0.09], [0.0021474, 48.8], [0.0021476, 3.41], [0.0021477, 0.07],
                            [0.0021478, 6.21], [0.0021479, 0.57], [0.002148, 3.84], [0.0021482, 0.85],
                            [0.0021483, 6.64], [0.0021484, 0.49], [0.0021485, 0.42], [0.0021486, 1.12],
                            [0.0021487, 6.58], [0.0021488, 1.84], [0.0021489, 0.08], [0.002149, 1.31], [0.0021491, 2.5],
                            [0.0021492, 0.22], [0.0021493, 43.82], [0.0021494, 6.38], [0.0021496, 3.94],
                            [0.0021498, 2.88], [0.0021499, 1.25], [0.00215, 31.03], [0.0021501, 0.2], [0.0021502, 0.98],
                            [0.0021503, 0.24], [0.0021504, 1.15], [0.0021505, 1.17], [0.0021506, 2.55],
                            [0.0021508, 135.25], [0.0021509, 4.07], [0.002151, 0.59], [0.0021511, 2.55],
                            [0.0021512, 0.13], [0.0021514, 0.16], [0.0021515, 0.25], [0.0021516, 12.52],
                            [0.0021517, 19.41], [0.0021518, 0.44], [0.0021519, 8.88], [0.002152, 1.07],
                            [0.0021521, 7.04], [0.0021522, 0.12], [0.0021523, 17.15], [0.0021524, 0.09],
                            [0.0021526, 1.7], [0.0021527, 1.34], [0.0021528, 0.54], [0.002153, 2.09], [0.0021531, 0.21],
                            [0.0021532, 3.62], [0.0021533, 1.26], [0.0021534, 1.36], [0.0021536, 0.21],
                            [0.0021537, 2.04], [0.0021538, 2.78], [0.0021539, 0.53], [0.002154, 1.02],
                            [0.0021541, 2.45], [0.0021542, 0.15], [0.0021544, 0.15], [0.0021545, 0.2],
                            [0.0021546, 0.24], [0.0021547, 1.48], [0.0021548, 0.46], [0.002155, 3.64],
                            [0.0021551, 4.72], [0.0021552, 3.69], [0.0021553, 0.1], [0.0021554, 0.52],
                            [0.0021555, 1.94], [0.0021556, 3.21], [0.0021557, 0.32], [0.0021558, 0.79],
                            [0.0021559, 0.08], [0.002156, 1.54], [0.0021562, 0.36], [0.0021563, 0.2], [0.0021564, 9.23],
                            [0.0021565, 0.99], [0.0021566, 3.22], [0.0021567, 0.3], [0.0021568, 0.1], [0.0021569, 2.99],
                            [0.002157, 1.61], [0.0021571, 2.35], [0.0021572, 1.66], [0.0021573, 0.2], [0.0021574, 2.84],
                            [0.0021575, 1.07], [0.0021577, 1.11], [0.0021578, 0.89], [0.0021579, 0.29],
                            [0.002158, 10.68], [0.0021581, 0.12], [0.0021582, 0.43], [0.0021584, 0.96],
                            [0.0021586, 1.34], [0.0021588, 363.14], [0.0021589, 0.27], [0.002159, 26.96],
                            [0.0021591, 0.59], [0.0021592, 0.33], [0.0021593, 0.36], [0.0021594, 0.74],
                            [0.0021595, 0.57], [0.0021596, 1.19], [0.0021597, 0.29], [0.00216, 4.76], [0.0021601, 0.74],
                            [0.0021602, 10.38], [0.0021604, 5.62], [0.0021605, 1.98], [0.0021606, 0.43],
                            [0.0021607, 0.79], [0.0021608, 1.31], [0.0021609, 1.27], [0.002161, 2.34],
                            [0.0021611, 1.15], [0.0021612, 2.87], [0.0021613, 22.94], [0.0021614, 1.3],
                            [0.0021615, 0.09], [0.0021616, 0.8], [0.0021617, 4.53], [0.0021618, 0.32],
                            [0.002162, 125.35], [0.0021621, 0.7], [0.0021622, 5.0], [0.0021623, 0.09],
                            [0.0021625, 0.44], [0.0021626, 0.09], [0.002163, 4.08], [0.0021631, 24.35],
                            [0.0021636, 3.51], [0.0021638, 2.75], [0.002164, 2.53], [0.0021641, 0.67],
                            [0.0021642, 1.03], [0.0021644, 0.29], [0.0021645, 1.86], [0.0021646, 0.33],
                            [0.0021647, 2.31], [0.0021648, 0.21], [0.0021649, 0.23], [0.002165, 86.44],
                            [0.0021651, 1.95], [0.0021652, 0.92], [0.0021653, 3.31], [0.0021654, 1.79],
                            [0.0021655, 1.07], [0.0021656, 2.77], [0.0021658, 0.37], [0.0021659, 0.66],
                            [0.002166, 1.16], [0.0021664, 2.58], [0.0021665, 0.2], [0.0021666, 2.29], [0.0021667, 0.11],
                            [0.0021668, 361.17], [0.0021669, 0.36], [0.0021671, 0.8], [0.0021674, 0.65],
                            [0.0021675, 2.81], [0.0021676, 16.56], [0.0021677, 0.52], [0.0021678, 0.81],
                            [0.0021679, 1.02], [0.002168, 1.8], [0.0021681, 0.32], [0.0021682, 0.65], [0.0021683, 1.35],
                            [0.0021684, 1.26], [0.0021685, 1.0], [0.0021686, 1.17], [0.0021687, 1.51],
                            [0.0021688, 2.46], [0.0021689, 1.63], [0.002169, 17.81], [0.0021692, 0.66],
                            [0.0021693, 0.22], [0.0021694, 18.99], [0.0021696, 1.6], [0.0021697, 3.49],
                            [0.0021698, 0.46], [0.0021699, 2.6], [0.00217, 206.82], [0.0021702, 0.65], [0.0021703, 0.8],
                            [0.0021704, 0.65], [0.0021705, 0.1], [0.0021707, 0.45], [0.0021708, 0.66],
                            [0.0021709, 5.02], [0.002171, 1.81], [0.0021712, 0.95], [0.0021713, 1.89],
                            [0.0021714, 1.93], [0.0021715, 5.99], [0.0021716, 0.29], [0.0021717, 3.19],
                            [0.0021718, 6.22], [0.0021719, 1.51], [0.002172, 3.26], [0.0021721, 1.3], [0.0021723, 1.39],
                            [0.0021724, 0.84], [0.0021725, 3.62], [0.0021726, 2.49], [0.0021728, 0.14],
                            [0.0021729, 2.23], [0.002173, 2.03], [0.0021731, 0.62], [0.0021733, 0.44],
                            [0.0021734, 3.47], [0.0021735, 1.13], [0.0021736, 0.29], [0.0021737, 1.1],
                            [0.0021739, 1.85], [0.0021741, 1.09], [0.0021742, 6.42], [0.0021743, 0.22],
                            [0.0021744, 258.32], [0.0021745, 2.35], [0.0021746, 0.09], [0.0021747, 1.2],
                            [0.0021749, 363.51], [0.002175, 3.7], [0.0021751, 6.92], [0.0021752, 0.06],
                            [0.0021754, 0.65], [0.0021755, 0.1], [0.0021756, 1.63], [0.0021757, 0.33],
                            [0.0021758, 0.22], [0.0021759, 5.86], [0.002176, 1.06], [0.0021761, 0.09], [0.0021762, 1.2],
                            [0.0021763, 2.35]]

    def test_add_depth_cache_missing_stream_id(self):
        self.assertFalse(self.ubldc._add_depth_cache(market="BTCUSDT"))

    def test_add_depth_cache_missing_market(self):
        self.assertFalse(self.ubldc._add_depth_cache(stream_id="AAAAAAAAAAAAAAAAA"))

    def test_div(self):
        self.ubldc.get_latest_release_info()
        self.ubldc.get_latest_version()
        self.ubldc.get_version()
        self.ubldc.is_update_available()
        self.ubldc.is_depth_cache_synchronized("BTCUSDT")
        self.ubldc.get_list_of_depth_caches()

    def test_create_depth_cache_true(self):
        self.assertTrue(self.ubldc.create_depth_cache(markets='BTCUSDT', refresh_interval=20, update_interval=1000))
        try:
            self.ubldc.get_asks(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass
        try:
            self.ubldc.get_bids(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass

    def test_create_depth_cache_true_exists(self):
        self.assertTrue(self.ubldc.create_depth_cache(markets='BTCUSDT'))

    def test_stream_signal_disconnect(self):
        self.ubldc.ubwa.add_to_stream_signal_buffer("DISCONNECT", "faked_stream_id", "debug msg")

    def test_create_depth_cache_true_futures(self):
        self.assertTrue(self.ubldc_futures.create_depth_cache(markets='BTCUSDT', update_interval=100))
        time.sleep(120)

    def test_set_refresh_request(self):
        self.assertTrue(self.ubldc.set_refresh_request("BTCUSDT"))
        for stream_id in self.ubldc.ubwa.get_stream_list():
            self.ubldc.ubwa.set_restart_request(stream_id)
        time.sleep(10)

    def test_stop_depth_cache_true(self):
        self.assertTrue(self.ubldc.stop_depth_cache(str("BTCUSDT")))

    def test_create_depth_cache_false(self):
        self.assertFalse(self.ubldc.create_depth_cache())

    def test_stop_depth_cache_false(self):
        self.assertFalse(self.ubldc.stop_depth_cache())

    def test_get_asks(self):
        try:
            self.ubldc.get_asks(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass

    def test_get_bids(self):
        try:
            self.ubldc.get_bids(market='BTCUSDT')
        except DepthCacheOutOfSync:
            pass

    def test_sort_dict(self):
        self.assertListEqual(self.assert_list, self.ubldc._sort_depth_cache(self.items))

    def test_is_update_availabe_true(self):
        self.assertFalse((self.ubldc.is_update_available()))

    def test_invalid_market(self):
        try:
            self.ubldc.get_bids(market='TEST_INVALID_MARKET')
        except KeyError:
            pass

    def test_stop_manager(self):
        self.ubldc.stop_manager_with_all_depth_caches()
        self.ubldc_futures.stop_manager_with_all_depth_caches()


if __name__ == '__main__':
    unittest.main()
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # File: manager.py # # Part of ‘UNICORN Binance Local Depth Cache’ # Project website: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache # Github: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache # Documentation: https://unicorn-binance-local-depth-cache.docs.lucit.tech # PyPI: https://pypi.org/project/unicorn-binance-local-depth-cache # # Author: LUCIT Systems and Development # # Copyright (c) 2022-2022, LUCIT Systems and Development (https://www.lucit.tech) and <NAME> # All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # tribute, sublicense, and/or sell copies of the Software, and to permit # persons to whom the Software is furnished to do so, subject to the fol- # lowing conditions: # # The above copyright notice and this permission notice shall be included # in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS # IN THE SOFTWARE.