def test_generate_value_of_base_value_generator_raises_error(self):
     base_generator = value_generators_domain.BaseValueGenerator()
     with self.assertRaisesRegexp(
         NotImplementedError,
         re.escape(
             'generate_value() method has not yet been implemented')):
         base_generator.generate_value()
 def test_generate_value_of_base_value_generator_raises_error(self) -> None:
     base_generator = value_generators_domain.BaseValueGenerator()
     with self.assertRaisesRegex( # type: ignore[no-untyped-call]
         NotImplementedError,
         re.escape(
             'generate_value() method has not yet been implemented')):
         base_generator.generate_value()
示例#3
0
 def test_generate_value_of_base_value_generator_raises_error(self):
     base_generator = value_generators_domain.BaseValueGenerator()
     with self.assertRaises(NotImplementedError):
         base_generator.generate_value()