def test_proper_simple_input(self):
        """
        Scheduler.generate_scripts for proper simple input
        :return:
        """
        job = Job('basic_valid.json')
        # here i could create tmp object to spoofing Job for testing purposes,
        # but for now I'm too lazy and I have trust that 'validate' function is flawless
        # TODO change that
        G.VALIDATOR.validate(job)
        ######
        ok_(self.scheduler.generate_scripts(job), "Generating script")
        check_file(os.path.join(self.scheduler.work_path, job.id(), 'pbs.sh'),
                   ["#!/bin/sh",
                    "one 30",
                    "100 two",
                    "nanana -20.1 nanana",
                    "99.2",
                    "[1.2, 2.1, 77.4]"])

        check_file(os.path.join(self.scheduler.work_path, job.id(),'subdir','bla.txt'),
                   ["-- 1.2",
                   "-- 2.1",
                    "-- 77.4"])

        check_file(os.path.join(self.scheduler.work_path, job.id(), 'input.txt'),
                   ["1.2 m",
                    "2.1 m",
                    "77.4 m"])
 def test_proper_input_object_variable(self):
     """
     Scheduler.generate_scripts for proper simple input with object variable
     :return:
     """
     job = Job('test_valid_job.json')
     # here i could create tmp object to spoofing Job for testing purposes,
     # but for now I'm too lazy and I have trust that 'validate' function is flawless
     # TODO change that
     G.VALIDATOR.validate(job)
     ok_(self.scheduler.generate_scripts(job), "Generating script")
     check_file(os.path.join(self.scheduler.work_path, job.id(),'pbs.sh'),
                 ["#!/bin/sh",
                 "2.3",
                 "20150317 135200",
                 "34:",
                 "    B: 21 ?",
                 "    B: 30 ?",
                 "    B: 41 ?"])