Esempio n. 1
0
        def can_recreate(self):
            # Calling without an environment existing
            venv.argument_handler('recreate', None)
            expect(os.path.exists(venv.ENV_PATH)).to.be_true()

            # Calling again now that the environment exists
            venv.argument_handler('recreate', None)
            expect(os.path.exists(venv.ENV_PATH)).to.be_true()
Esempio n. 2
0
        def can_create_and_delete(self):
            venv.argument_handler('create', None)
            expect(os.path.exists(venv.ENV_PATH)).to.be_true()

            venv.argument_handler('delete', None)
            expect(os.path.exists(venv.ENV_PATH)).to.be_false()
Esempio n. 3
0
 def invalid_argument_does_nothing(self):
     venv.argument_handler('boom', None)