how to test class private method in nosetest ?
My code
class Txt(object):
"""docstring for Txt"""
def __init__(self, im_file):
super(Txt, self).__init__()
self.im_file = im_file
@classmethod
def __parse_config(cls, im_file):
for line in im_file:
print(line)
pass
My nosetest
class TestTxt(object):
"""docstring for TestTxt"""
@classmethod
def setup_class(cls):
cls.testing_file = '\n'.join([
'rtsp_link: rtsp://172.19.1.101',
])
def test_load(self):
Txt.parse_config(StringIO(self.testing_file))
pass