

def test_lock_uses_the_identity_rev(self, source):
    source.identify = Mock(return_value=('path2', 'dir2', 'abc123'))
    source2 = source.lock()
    assert ('abc123' == source2.rev)
    assert ('name' == source2.name)

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