def test_generate(self):
        u1 = self.F.UserFactory.create()
        u2 = self.F.UserFactory.create()

        with patch("moztrap.model.core.models.uuid") as mockuuid:
            mockuuid.uuid4.return_value = "foo"

            k = self.model.ApiKey.generate(owner=u1, user=u2)

        self.assertEqual(k.key, "foo")
        self.assertEqual(k.owner, u1)
        self.assertEqual(k.created_by, u2)
Logs the given messages as separate entries with the INFO level.
dataset/ETHPy150Open mozilla/moztrap/tests/model/core/models/test_apikey.py/ApiKeyTest.test_generate--crossover with--dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/libraries/BuiltIn.py/_Misc.log_many