def test_create_hypernode_vagrant_starts_hypernode_vagrant_with_xdebug_installed_if_specified(self): create_hypernode_vagrant(xdebug_enabled=True) self.start_hypernode_vagrant.assert_called_once_with( self.ensure_directory_for_checkout.return_value, php_version=HYPERNODE_VAGRANT_DEFAULT_PHP_VERSION, xdebug_enabled=True )
def test_create_hypernode_vagrant_starts_hypernode_vagrant_with_specified_php_version(self): create_hypernode_vagrant(php_version='5.5') self.start_hypernode_vagrant.assert_called_once_with( self.ensure_directory_for_checkout.return_value, php_version='5.5', xdebug_enabled=False )
def test_create_hypernode_vagrant_starts_hypernode_vagrant_in_ensured_path(self): create_hypernode_vagrant() self.start_hypernode_vagrant.assert_called_once_with( self.ensure_directory_for_checkout.return_value, php_version=HYPERNODE_VAGRANT_DEFAULT_PHP_VERSION, xdebug_enabled=False, xenial=False, no_provision=False )
def test_create_hypernode_vagrant_starts_hypernode_vagrant_with_specified_php_version( self): create_hypernode_vagrant(php_version='5.5') self.start_hypernode_vagrant.assert_called_once_with( self.ensure_directory_for_checkout.return_value, php_version='5.5', xdebug_enabled=False, xenial=False, no_provision=False)
def test_create_hypernode_vagrant_starts_hypernode_vagrant_with_xenial_image_if_specified( self): create_hypernode_vagrant(xenial=True) self.start_hypernode_vagrant.assert_called_once_with( self.ensure_directory_for_checkout.return_value, php_version=HYPERNODE_VAGRANT_DEFAULT_PHP_VERSION, xdebug_enabled=False, xenial=True, no_provision=False)
def test_create_hypernode_vagrant_ensures_required_plugins_are_installed(self): create_hypernode_vagrant() self.ensure_required_plugins_are_installed.assert_called_once_with()
def test_create_hypernode_vagrant_ensures_hypernode_vagrant_checkout(self): create_hypernode_vagrant() self.ensure_hypernode_vagrant_checkout.assert_called_once_with( directory=self.ensure_directory_for_checkout.return_value )
def test_create_hypernode_vagrant_uses_specified_pre_existing_directory_if_specified(self): create_hypernode_vagrant(directory='/tmp/some/pre/existing/directory') self.ensure_directory_for_checkout.assert_called_once_with( directory='/tmp/some/pre/existing/directory' )
def test_create_hypernode_vagrant_does_not_try_sudo_if_skip_try_sudo(self): create_hypernode_vagrant(skip_try_sudo=True) self.assertFalse(self.try_sudo.called)
def test_create_hypernode_vagrant_tries_sudo(self): create_hypernode_vagrant() self.try_sudo.assert_called_once_with()
def test_create_hypernode_vagrant_returns_ensured_directory(self): ret = create_hypernode_vagrant() self.assertEqual(ret, self.ensure_directory_for_checkout.return_value)
def test_create_hypernode_vagrant_ensures_required_plugins_are_installed( self): create_hypernode_vagrant() self.ensure_required_plugins_are_installed.assert_called_once_with()
def test_create_hypernode_vagrant_ensures_hypernode_vagrant_checkout(self): create_hypernode_vagrant() self.ensure_hypernode_vagrant_checkout.assert_called_once_with( directory=self.ensure_directory_for_checkout.return_value)
def test_create_hypernode_vagrant_uses_specified_pre_existing_directory_if_specified( self): create_hypernode_vagrant(directory='/tmp/some/pre/existing/directory') self.ensure_directory_for_checkout.assert_called_once_with( directory='/tmp/some/pre/existing/directory')