Exemplo n.º 1
0
 def test_gen_uuid_matches_regex(self):
     pg = ParamGen(**self.class_kwargs)
     generated_uuid = pg._gen_uuid()
     self.assertRegex(
         generated_uuid,
         re.compile(
             '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}')
     )
Exemplo n.º 2
0
 def test_gen_uuid_is_string(self):
     pg = ParamGen(**self.class_kwargs)
     generated_uuid = pg._gen_uuid()
     self.assertEqual(type(generated_uuid), type(str()))