Exemplo n.º 1
0
 def test_regex_replace_param_value(self):
     pg = ParamGen(**self.class_kwargs)
     pg.param_name = 'test_param'
     pg.param_value = 'example-foo-value'
     re_pattern = re.compile('foo')
     pg._regex_replace_param_value(re_pattern, 'bar')
     self.assertEqual(pg.param_value, 'example-bar-value')
Exemplo n.º 2
0
 def test_convert_to_str(self):
     pg = ParamGen(**self.class_kwargs)
     pg.param_name = 'test_param'
     pg.param_value = 1234
     pg.convert_to_str()
     self.assertEqual(pg.param_value, '1234')