<s> from pygit2 import Repository <EOL> from pygit2 import is_repository <EOL> from _base import NoneRepoTest <EOL> from ellen . repo import Jagare <EOL> class TestInit ( NoneRepoTest ) : <EOL> def test_empty ( self ) : <EOL> self . clean ( ) <EOL> repo = Jagare . init ( self . path , work_path = self . path ) <EOL> pygit2_repo = Repository ( self . path ) <EOL> assert is_repository ( self . path ) is True <EOL> assert repo . empty is True <EOL> assert repo . bare is False <EOL> assert pygit2_repo . is_empty is True <EOL> assert pygit2_repo . is_bare is False <EOL> def test_bare ( self ) : <EOL> self . clean ( ) <EOL> repo = Jagare . init ( self . path , bare = True ) <EOL> pygit2_repo = Repository ( self . path ) <EOL> assert is_repository ( self . path ) is True <EOL> assert repo . empty is True <EOL> assert repo . bare is True <EOL> assert pygit2_repo . is_empty is True <EOL> assert pygit2_repo . is_bare is True </s>
