def test_other_options_are_preserved(self): params = ['-someOpt', 'value', '-otherOpt'] self.assertEquals(_server_startup_params(params), params + [FIREFOX_TEMPLATE_ARG, FIREFOX_PROFILE_DIR])
def test_given_profile_is_not_overridden(self): params = _server_startup_params([FIREFOX_TEMPLATE_ARG, 'foo']) self.assertEquals(params, [FIREFOX_TEMPLATE_ARG, 'foo'])
def test_real_default_profile_can_be_used(self): params = [FIREFOX_TEMPLATE_ARG, FIREFOX_DEFAULT_PROFILE] self.assertEquals(_server_startup_params(params), [])
def test_selenium_lib_default_profile_is_used_when_no_profile_given(self): self.assertEquals(_server_startup_params([]), [FIREFOX_TEMPLATE_ARG, FIREFOX_PROFILE_DIR])