diff options
-rw-r--r-- | gitosis/test/test_init.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gitosis/test/test_init.py b/gitosis/test/test_init.py index acfe8ff..e3531a3 100644 --- a/gitosis/test/test_init.py +++ b/gitosis/test/test_init.py @@ -19,10 +19,12 @@ def test_init_admin_repository(): +'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' +'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= fakeuser@fakehost') user = 'jdoe' + cfg = RawConfigParser() init.init_admin_repository( git_dir=admin_repository, pubkey=pubkey, user=user, + config=cfg, ) eq(os.listdir(tmp), ['admin.git']) hook = os.path.join( @@ -47,9 +49,9 @@ def test_init_admin_repository(): # the only thing guaranteed of initial config file ordering is # that [gitosis] is first got = util.readFile(os.path.join(export_dir, 'gitosis.conf')) - got = got.splitlines()[0] - eq(got, '[gitosis]') - cfg = RawConfigParser() + # We can't gaurentee this anymore + #got = got.splitlines()[0] + #eq(got, '[gitosis]') cfg.read(os.path.join(export_dir, 'gitosis.conf')) eq(sorted(cfg.sections()), sorted([ |