Esempio n. 1
0
def test_read_issue():
    from rospkg.os_detect import read_issue
    assert read_issue('/fake/file') == None
    test_dir = os.path.join(get_test_dir(), 'rhel')
    assert read_issue(os.path.join(test_dir, 'issue')) == \
    ['Red', 'Hat', 'Enterprise', 'Linux', 'AS', 'release', '3', '(Taroon)']
def test_read_issue():
    from rospkg.os_detect import read_issue
    assert read_issue('/fake/file') is None
    test_dir = os.path.join(get_test_dir(), 'rhel')
    assert read_issue(os.path.join(test_dir, 'issue')) == \
        ['Red', 'Hat', 'Enterprise', 'Linux', 'AS', 'release', '3', '(Taroon)']