

def test_identify_missing(self, source, tmpdir):
    'Verify a missing source identifies as unknown.'
    tmpdir.chdir()
    with patch('os.path.isdir', Mock(return_value=False)):
        assert ((str(tmpdir), '<missing>', '<unknown>') == source.identify())

dataset/ETHPy150Open jacebrowning/gitman/gitman/test/test_models_source.py TestSource.test_identify_missing/original