def test_gets_argument_values_ignores_unknown_values(self):
     app_type_value = self.getUniqueString()
     kwargs = dict(app_type=app_type_value, unknown=self.getUniqueString())
     self.assertEqual(
         _get_application_launch_args(kwargs),
         dict(app_type=app_type_value)
     )
    def test_gets_argument_values(self):
        app_type_value = self.getUniqueString()

        self.assertEqual(
            _get_application_launch_args(dict(app_type=app_type_value)),
            dict(app_type=app_type_value)
        )
 def test_removes_used_arguments_from_parameter(self):
     app_type_value = self.getUniqueString()
     kwargs = dict(app_type=app_type_value)
     _get_application_launch_args(kwargs)
     self.assertEqual(kwargs, dict())
 def test_ignores_unknown_args(self):
     self.assertEqual(_get_application_launch_args(dict(unknown="")), {})
 def test_when_no_args_returns_empty_dict(self):
     self.assertEqual(_get_application_launch_args(dict()), dict())