<filename>PlottingTools/Tests/Tests.py<gh_stars>0
import os
import sys
import pathlib

PACKAGE_PARENT = pathlib.Path.cwd().parent
SCRIPT_DIR = PACKAGE_PARENT / 'LSST_Solar_System_Plotting_Tools/PlottingTools/Source'
sys.path.append(str(SCRIPT_DIR))
print(sys.path)
import unittest
import psycopg2 as pg
from Functions import VariableTesting,DateorMJD
from Plots import *
import pandas as ps
import numpy as np
from astropy.time import Time

      
class TestFunc(unittest.TestCase):
    
    def test_variable_testing(self):
        VariableTesting(0,2,60042,None,None,None,Time.now(),-7)

class Test_Hist(unittest.TestCase):
    theframe = ps.read_csv(sys.path[0]+'/Cache/iqeaframe-q-5.csv',nrows=100)

    def test_ieqa2dHist_9(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))
    
    def test_ieqa2dHist_8(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqa2dHist_7(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqa2dHist_6(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False))
         
    def test_ieqa2dHist_5(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))

         
    def test_ieqa2dHist_4(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqa2dHist_3(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqa2dHist_2(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))

    def test_ieqa2dHist_1(self):
        
         """
         Test to ensure each of these remain valid within the program.
         """
         self.assertIsNotNone(Test_Hist.theframe)
         
    def test_ieqahexplot_10(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe))   
         
    def test_ieqahexplot_9(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqahexplot_8(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqahexplot_7(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqahexplot_6(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))

    def test_ieqahexplot_5(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe))
         
    def test_ieqahexplot_4(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqahexplot_3(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqahexplot_2(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))

    def test_ieqahexplot_1(self):
         """
         Test to ensure each of these remain valid within the program.
         """
         
         self.assertIsNotNone(Test_Hist.theframe)
         
         
            
        
        
    
class TestDF(unittest.TestCase):

    CDF = ps.read_csv(sys.path[0]+'/Cache/CDF.csv',nrows=100)
    CDF2 = ps.read_csv(sys.path[0]+'/Cache/CDF2.csv',nrows=100)
    CDF3 = ps.read_csv(sys.path[0]+'/Cache/CDF3.csv',nrows=100)
    dataframe =ps.read_csv(sys.path[0]+'/Cache/bev_cache',nrows=100)
    violin = ps.read_csv(sys.path[0]+'/Cache/violin_cache', nrows=100)
    date = 60042.75
       
    
    def test_immutabledata_15(self):
        ps.testing.assert_frame_equal(TestDF.CDF2,boxwhisker_plot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF2,KeepData=True,ShowPlot=False,boxOrBoxen=2))
    def test_immutabledata_14(self):
        ps.testing.assert_frame_equal(TestDF.CDF2,boxwhisker_plot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF2,KeepData=True,ShowPlot=False,boxOrBoxen=1))
    def test_immutabledata_13(self):
        ps.testing.assert_frame_equal(TestDF.CDF2,boxwhisker_plot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF2,KeepData=True,ShowPlot=False,boxOrBoxen=0))

        
    def test_immutabledata_12(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False))
    def test_immutabledata_11(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_10(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False,Filters = 'grizy'))
        
    def test_immutabledata_9(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False,Filters = 'grizy'))

    def test_immutabledata_8(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False,Filters = 'grizy'))


    def test_immutabledata_7(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False,Filters = 'grizy'))
        
    def test_immutabledata_6(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_5(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_4(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False,Filters = 'grizy'))

    def test_immutabledata_3(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False,Filters = 'grizy'))
    def test_immutabledata_2(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_1(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False))
            
    
    def test_violin_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042 
        self.assertIsNotNone(violin_plot(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.violin))
        
    def test_violin_not_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNone(violin_plot(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.violin))
    
    def test_hexplot_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042

        self.assertIsNotNone(HexPlot(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.dataframe))
        
    def test_hexplot_not_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNone(HexPlot(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.dataframe))
    
    def test_hist2d_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNotNone(HistogramPlot2D(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.dataframe))
        
    def test_hist2d_not_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNone(HistogramPlot2D(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.dataframe))
    
    def test_bev_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042
        
        self.assertIsNotNone(BirdsEyeViewPlotter(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.dataframe))

        
    def test_bev_not_return_df(self):
        """
        Test That when KeepData = False a Database is not returned.
        """
        date = 60042

        self.assertIsNone(BirdsEyeViewPlotter(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.dataframe))

if __name__ == '__main__':        
    unittest.main(argv=['M87'], exit=False)


<filename>PlottingTools/Tests/Tests.py<gh_stars>0
import os
import sys
import pathlib

PACKAGE_PARENT = pathlib.Path.cwd().parent
SCRIPT_DIR = PACKAGE_PARENT / 'LSST_Solar_System_Plotting_Tools/PlottingTools/Source'
sys.path.append(str(SCRIPT_DIR))
print(sys.path)
import unittest
import psycopg2 as pg
from Functions import VariableTesting,DateorMJD
from Plots import *
import pandas as ps
import numpy as np
from astropy.time import Time

      
class TestFunc(unittest.TestCase):
    
    def test_variable_testing(self):
        VariableTesting(0,2,60042,None,None,None,Time.now(),-7)

class Test_Hist(unittest.TestCase):
    theframe = ps.read_csv(sys.path[0]+'/Cache/iqeaframe-q-5.csv',nrows=100)

    def test_ieqa2dHist_9(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))
    
    def test_ieqa2dHist_8(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqa2dHist_7(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqa2dHist_6(self):
        self.assertIsNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=False,DataFrame=Test_Hist.theframe,ShowPlot=False))
         
    def test_ieqa2dHist_5(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))

         
    def test_ieqa2dHist_4(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqa2dHist_3(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqa2dHist_2(self):
        self.assertIsNotNone(iqeaHistogramPlot2D(60042,a_min=27,a_max=80,KeepData=True,DataFrame=Test_Hist.theframe,ShowPlot=False,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))

    def test_ieqa2dHist_1(self):
        
         """
         Test to ensure each of these remain valid within the program.
         """
         self.assertIsNotNone(Test_Hist.theframe)
         
    def test_ieqahexplot_10(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe))   
         
    def test_ieqahexplot_9(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqahexplot_8(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqahexplot_7(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqahexplot_6(self):
        self.assertIsNotNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=True,DataFrame=Test_Hist.theframe,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))

    def test_ieqahexplot_5(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe))
         
    def test_ieqahexplot_4(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe,xyscale=['q','incl','inclination-perhelion'],xylabels=['perihelion (au)','inclination (degrees)',]))
         
    def test_ieqahexplot_3(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe,xyscale=['a','e','eccentricity-semimajor'],xylabels=['semimajor axis (au)','eccentricity']))
         
    def test_ieqahexplot_2(self):
        self.assertIsNone(iqeaHexPlot(60042,a_min=27,a_max=80,ShowPlot=False,KeepData=False,DataFrame=Test_Hist.theframe,xyscale=['a','incl','inclination-semimajor'],xylabels=['semimajor axis (au)','inclination (degrees)']))

    def test_ieqahexplot_1(self):
         """
         Test to ensure each of these remain valid within the program.
         """
         
         self.assertIsNotNone(Test_Hist.theframe)
         
         
            
        
        
    
class TestDF(unittest.TestCase):

    CDF = ps.read_csv(sys.path[0]+'/Cache/CDF.csv',nrows=100)
    CDF2 = ps.read_csv(sys.path[0]+'/Cache/CDF2.csv',nrows=100)
    CDF3 = ps.read_csv(sys.path[0]+'/Cache/CDF3.csv',nrows=100)
    dataframe =ps.read_csv(sys.path[0]+'/Cache/bev_cache',nrows=100)
    violin = ps.read_csv(sys.path[0]+'/Cache/violin_cache', nrows=100)
    date = 60042.75
       
    
    def test_immutabledata_15(self):
        ps.testing.assert_frame_equal(TestDF.CDF2,boxwhisker_plot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF2,KeepData=True,ShowPlot=False,boxOrBoxen=2))
    def test_immutabledata_14(self):
        ps.testing.assert_frame_equal(TestDF.CDF2,boxwhisker_plot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF2,KeepData=True,ShowPlot=False,boxOrBoxen=1))
    def test_immutabledata_13(self):
        ps.testing.assert_frame_equal(TestDF.CDF2,boxwhisker_plot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF2,KeepData=True,ShowPlot=False,boxOrBoxen=0))

        
    def test_immutabledata_12(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False))
    def test_immutabledata_11(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_10(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False,Filters = 'grizy'))
        
    def test_immutabledata_9(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HexPlot(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False,Filters = 'grizy'))

    def test_immutabledata_8(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False,Filters = 'grizy'))


    def test_immutabledata_7(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False,Filters = 'grizy'))
        
    def test_immutabledata_6(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_5(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_HistogramPlot2D(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_4(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False,Filters = 'grizy'))

    def test_immutabledata_3(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False,Filters = 'grizy'))
    def test_immutabledata_2(self):
        ps.testing.assert_frame_equal(TestDF.CDF3,Topocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF3,KeepData=True,ShowPlot=False))
        
    def test_immutabledata_1(self):
        ps.testing.assert_frame_equal(TestDF.CDF,Heliocentric_BirdsEyeView(0,2,TestDF.date,filename='test',title = None,DataFrame=TestDF.CDF,KeepData=True,ShowPlot=False))
            
    
    def test_violin_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042 
        self.assertIsNotNone(violin_plot(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.violin))
        
    def test_violin_not_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNone(violin_plot(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.violin))
    
    def test_hexplot_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042

        self.assertIsNotNone(HexPlot(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.dataframe))
        
    def test_hexplot_not_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNone(HexPlot(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.dataframe))
    
    def test_hist2d_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNotNone(HistogramPlot2D(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.dataframe))
        
    def test_hist2d_not_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042  
        self.assertIsNone(HistogramPlot2D(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.dataframe))
    
    def test_bev_return_df(self):
        """
        Test That when KeepData = True a Database is returned.
        """
        date = 60042
        
        self.assertIsNotNone(BirdsEyeViewPlotter(0,2,date,filename='test',title = None,KeepData=True,ShowPlot=False,DataFrame=TestDF.dataframe))

        
    def test_bev_not_return_df(self):
        """
        Test That when KeepData = False a Database is not returned.
        """
        date = 60042

        self.assertIsNone(BirdsEyeViewPlotter(0,2,date,filename='test',title = None,KeepData=False,ShowPlot=False,DataFrame=TestDF.dataframe))

if __name__ == '__main__':        
    unittest.main(argv=['M87'], exit=False)


Test to ensure each of these remain valid within the program. Test to ensure each of these remain valid within the program. Test That when KeepData = True a Database is returned. Test That when KeepData = True a Database is returned. Test That when KeepData = True a Database is returned. Test That when KeepData = True a Database is returned. Test That when KeepData = True a Database is returned. Test That when KeepData = True a Database is returned. Test That when KeepData = True a Database is returned. Test That when KeepData = False a Database is not returned.