Beispiel #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()
Beispiel #2
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()
Beispiel #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))
Beispiel #4
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, e:
            assert True
            print str(e)
Beispiel #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()
Beispiel #6
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()