@@ -0,0 +1,851 @@
+__author__ = 'Felix Simkovic'%0A%0Aimport importlib%0Aimport os%0Aimport pytest%0A%0Afrom pyjob.exception import PyJobUnknownTaskPlatform%0Afrom pyjob.factory import TaskFactory, TASK_PLATFORMS%0A%0A%0Aclass TestFactory(object):%0A    def test_1(self):%0A        task = TaskFactory(TASK_PLATFORMS.keys()%5B0%5D, None)%0A        assert task.script == %5B%5D%0A%0A    def test_2(self):%0A        task = TaskFactory(TASK_PLATFORMS.keys()%5B0%5D.upper(), None)%0A        assert task.script == %5B%5D%0A%0A    def test_3(self):%0A        task = pytest.helpers.randomstr()%0A        while task in TASK_PLATFORMS:%0A            task = pytest.helpers.randomstr()%0A        with pytest.raises(PyJobUnknownTaskPlatform):%0A            TaskFactory(task, None)%0A%0A    def test_4(self):%0A        for _, v in TASK_PLATFORMS.items():%0A            module, class_ = v%0A            assert getattr(importlib.import_module(module), class_)%0A

test cases added for factory