Path file problem in test-unit

I have create a unit test on Pycharm but Pycharm don't recognize the path?
Is there a particular setting on Pycharm. Sorry, I just begin to code in Python. This is my code testing.


import unittest
from FormatChecker import FormatChecker
from astropy.io import  fits
import os

class TestFormatChecker(unittest.TestCase):

    def __init__(self, path="/home/morban/vr_Arp70.fits"):
        self.paths = path
 if os.path.exists(path)
:
            hdu_list = fits.open(path, mode='readonly')
            self.hdu_list = hdu_list

    def test_check_dimension(self):
        self.fail()

Please sign in to leave a comment.