Пример #1
0
class TestLaunchSpecification(unittest.TestCase):
    def setUp(self):
        self.launchspec = LaunchSpecification(app_properties, app_defaults)

    def test_all_properties(self):
        self.assertEqual(self.launchspec.get_variable_requirements(), set(app_property_names))

    def test_get_minimum_requirements(self):
        self.assertEqual(self.launchspec.get_minimum_requirements(), app_minimum_properties)

    def test_get_list_properties(self):
        self.assertEqual(self.launchspec.count_list_properties(), 0)
        self.assertTrue(self.launchspec.is_list_property("FlagPCRDuplicates-id"))
        self.assertFalse(self.launchspec.is_list_property("sample-id"))
class TestLaunchSpecification(unittest.TestCase):
    def setUp(self):
        self.launchspec = LaunchSpecification(app_properties, app_defaults)

    def test_all_properties(self):
        self.assertEqual(self.launchspec.get_variable_requirements(), set(app_property_names))

    def test_get_minimum_requirements(self):
        self.assertEqual(self.launchspec.get_minimum_requirements(), app_minimum_properties)

    def test_get_list_properties(self):
        self.assertEqual(self.launchspec.count_list_properties(), 0)
        self.assertTrue(self.launchspec.is_list_property("FlagPCRDuplicates-id"))
        self.assertFalse(self.launchspec.is_list_property("sample-id"))
Пример #3
0
class TestIntegration(unittest.TestCase):
    def setUp(self):
        self.launchspec = LaunchSpecification(app_properties, app_defaults)
        self.payload = LaunchPayload(self.launchspec, app_args, {})

    def test_launch_json_generation(self):
        args = self.payload.get_args()
        launch_name = self.payload.derive_launch_name(app_name)
        app_launch_json = self.launchspec.make_launch_json(args, launch_name)
        self.assertEqual(app_launch_json, launch_json)
class TestIntegration(unittest.TestCase):
    def setUp(self):
        self.launchspec = LaunchSpecification(app_properties, app_defaults)
        self.payload = LaunchPayload(self.launchspec, app_args, {})

    def test_launch_json_generation(self):
        args = self.payload.get_args()
        launch_name = self.payload.derive_launch_name(app_name)
        app_launch_json = self.launchspec.make_launch_json(args, launch_name)
        self.assertEqual(app_launch_json, launch_json)
Пример #5
0
 def setUp(self):
     self.launchspec = LaunchSpecification(app_properties, app_defaults)
     self.payload = LaunchPayload(self.launchspec, app_args, {})
Пример #6
0
 def setUp(self):
     self.launchspec = LaunchSpecification(app_properties, app_defaults)
 def setUp(self):
     self.launchspec = LaunchSpecification(app_properties, app_defaults)
     self.payload = LaunchPayload(self.launchspec, app_args, {})
 def setUp(self):
     self.launchspec = LaunchSpecification(app_properties, app_defaults)