Exemple #1
0
    def test_image_function(self):

        from sloancone import image
        this = image(
            log=log,
            settings=settings,
            ra="09:40:50.10",
            dec="-09:42:52.7",
            downloadDirectory=pathToOutputDir,
            filename="test_01.jpeg"
        )
        this.get()
    def test_image_function(self):

        from sloancone import image
        this = image(
            log=log,
            settings=settings,
            ra="09:40:50.10",
            dec="-09:42:52.7",
            downloadDirectory=pathToOutputDir,
            filename="test_01.jpeg"
        )
        this.get()
Exemple #3
0
    def test_image_function_exception(self):

        from sloancone import image
        try:
            this = image(
                log=log,
                settings=settings,
                fakeKey="break the code"
            )
            this.get()
            assert False
        except Exception as e:
            assert True
            print(str(e))
    def test_image_function_exception(self):

        from sloancone import image
        try:
            this = image(
                log=log,
                settings=settings,
                fakeKey="break the code"
            )
            this.get()
            assert False
        except Exception, e:
            assert True
            print str(e)
Exemple #5
0
    def test_image_function04(self):

        from sloancone import image
        this = image(
            log=log,
            settings=settings,
            ra="179.689293428354",
            dec="-0.454379056007667",
            downloadDirectory=pathToOutputDir,
            filename="test_04.jpeg",
            grid=False,
            label=True,
            photocat=False,
            speccat=False,
            invertColors=False,
            arcminWidth=5,
            pixelWidth=500
        )
        this.get()
    def test_image_function04(self):

        from sloancone import image
        this = image(
            log=log,
            settings=settings,
            ra="179.689293428354",
            dec="-0.454379056007667",
            downloadDirectory=pathToOutputDir,
            filename="test_04.jpeg",
            grid=False,
            label=True,
            photocat=False,
            speccat=False,
            invertColors=False,
            arcminWidth=5,
            pixelWidth=500
        )
        this.get()