Beispiel #1
0
    def test_call_pre_config_no_return(self):
        def pre_config():
            pass

        self.assertEqual(
            call_pre_config(pre_config, "output_path",
                            "simulator_output_path"), False)
Beispiel #2
0
    def test_call_pre_config_true(self):
        def pre_config():
            return True

        self.assertEqual(
            call_pre_config(pre_config, "output_path",
                            "simulator_output_path"), True)
Beispiel #3
0
 def test_call_pre_config_no_return(self):
     def pre_config():
         pass
     self.assertEqual(call_pre_config(pre_config, "output_path"), False)
Beispiel #4
0
 def test_call_pre_config_true(self):
     def pre_config():
         return True
     self.assertEqual(call_pre_config(pre_config, "output_path"), True)
Beispiel #5
0
 def test_call_pre_config_false(self):
     def pre_config():
         return False
     self.assertEqual(call_pre_config(pre_config, "output_path"), False)
Beispiel #6
0
 def test_call_pre_config_none(self):
     self.assertEqual(call_pre_config(None, "output_path"), True)
Beispiel #7
0
 def test_call_pre_config_none(self):
     self.assertEqual(call_pre_config(None, "output_path", "simulator_output_path"), True)
Beispiel #8
0
    def test_call_pre_config_false(self):
        def pre_config():
            return False

        self.assertEqual(call_pre_config(pre_config, "output_path"), False)