]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
remove another invalid test
authorAlfredo Deza <alfredo@deza.pe>
Wed, 17 Jul 2013 19:35:11 +0000 (15:35 -0400)
committerAlfredo Deza <alfredo@deza.pe>
Wed, 17 Jul 2013 19:35:11 +0000 (15:35 -0400)
ceph_deploy/test/test_cli_new.py

index 23ea2db1f029741d24c1f349912923faf60d49e6..35608d136ff57321545c7406f8d7b8708bb4dd39 100644 (file)
@@ -30,26 +30,6 @@ def test_write_global_conf_section(tmpdir, cli):
     assert cfg.sections() == ['global']
 
 
-def test_exists(tmpdir, cli):
-    with cli(
-        args=['ceph-deploy', 'new'],
-        ):
-        pass
-    with pytest.raises(cli.Failed) as err:
-        with cli(
-            args=['ceph-deploy', 'new'],
-            stderr=subprocess.PIPE,
-            ) as p:
-            got = p.stderr.read()
-            assert got == """\
-ceph-deploy: Cluster config exists already: ceph.conf
-"""
-
-    assert err.value.status == 1
-    # no temp files left around
-    assert {p.basename for p in tmpdir.listdir()} == {'ceph.conf'}
-
-
 def pytest_funcarg__newcfg(request):
     tmpdir = request.getfuncargvalue('tmpdir')
     cli = request.getfuncargvalue('cli')