示例#1
0
 def test_case_skip_why_attr(self):
     scope.configure(skip_why_attribute_name=self.skip_why_attr_name)
     self.assertEqual(scope._case.SKIP_WHY_ATTRIBUTE_NAME,
                      self.skip_why_attr_name)
示例#2
0
 def test_case_default_test_name(self):
     scope.configure(default_test_name=self.default_test_name)
     self.assertEqual(scope._loader.DEFAULT_TEST_NAME,
                      self.default_test_name)
示例#3
0
 def test_case_name_prefix(self):
     scope.configure(test_name_prefix=self.test_name_prefix)
     self.assertEqual(scope._loader.TEST_NAME_PREFIX, self.test_name_prefix)
示例#4
0
 def test_case_config_env_and_max_diff(self):
     scope.configure(config_env_name=self.config_test_name,
                     max_diff=self.max_diff)
     self.assertEqual(scope._program.CONFIG_ENV_NAME, self.config_test_name)
     self.assertEqual(scope._case.assertion.__unittest__.maxDiff,
                      self.max_diff)
示例#5
0
 def test_case_suite_group_class(self):
     with self.assertRaises(AssertionError):
         scope.configure(suite_group_class=self.mock_group_class)
示例#6
0
 def test_configure_round_time(self):
     scope.configure(round_runtime=self.real_round_time)
     self.assertEqual(scope._xunit.ROUND_RUNTIME, self.real_round_time)
示例#7
0
 def test_configure_with_bad_round_time(self):
     with self.assertRaises(AssertionError):
         scope.configure(round_runtime=self.round_time)
示例#8
0
 def test_configure_start_message(self):
     scope.configure(self.start_message)
     self.assertEqual(self.start_message, scope._result.START_MESSAGE)