def setUpClass(cls):
        # Create test databases
        if os.path.exists('PhotometryTestDatabase.db'):
            print "deleting database"
            os.unlink('PhotometryTestDatabase.db')

        makeStarTestDB(filename='PhotometryTestDatabase.db', size=100000, seedVal=1)
        makeGalTestDB(filename='PhotometryTestDatabase.db', size=100000, seedVal=1)
    def setUpClass(cls):
        cls.starDbName = 'VariabilityInfrastructureTestStarDB.db'
        if os.path.exists(cls.starDbName):
            os.unlink(cls.starDbName)

        makeStarTestDB(filename=cls.starDbName)

        cls.galaxyDbName = 'VariabilityInfrastructureTestGalaxyDB.db'
        if os.path.exists(cls.galaxyDbName):
            os.unlink(cls.galaxyDbname)

        makeGalTestDB(filename=cls.galaxyDbName)
    def setUpClass(cls):
        # Create test databases
        cls.starDBName = 'AstrometryTestStarDatabase.db'
        cls.galDBName = 'AstrometryTestGalaxyDatabase.db'
        if os.path.exists(cls.starDBName):
            os.unlink(cls.starDBName)
        makeStarTestDB(filename=cls.starDBName,
                      size=100000, seedVal=1, ramin=199.98*math.pi/180., dra=0.04*math.pi/180.)

        if os.path.exists(cls.galDBName):
            os.unlink(cls.galDBName)
        makeGalTestDB(filename=cls.galDBName,
                      size=100000, seedVal=1, ramin=199.98*math.pi/180., dra=0.04*math.pi/180.)
 def setUpClass(cls):
     cls.dbName = 'cosmologyTestDB.db'
     cls.dbSize=100
     if os.path.exists(cls.dbName):
         os.unlink(cls.dbName)
     makeGalTestDB(size=cls.dbSize, seedVal=1, filename=cls.dbName)