def _test2(parse_conf_mock):
     l._parse_conf_include(
         os.path.join(os.sep, "etc", "ld.so.conf"),
         "foo", 1)
     assert glob_mock.call_args_list == [
         call(os.path.join(os.sep, "etc", "foo"))]
     assert parse_conf_mock.call_args_list == [call(
         "a", 2), call("b", 2),
         call("c", 2)]
Exemple #2
0
 def _test2(parse_conf_mock):
     ldconfig._parse_conf_include(
         os.path.join(os.sep, "etc", "ld.so.conf"), "foo", 1)
     assert glob_mock.call_args_list == [
         call(os.path.join(os.sep, "etc", "foo"))
     ]
     assert parse_conf_mock.call_args_list == [
         call("a", 2), call("b", 2),
         call("c", 2)
     ]
 def _test(parse_conf, glob_mock):
     l = os_dep.Ldconfig()
     l._parse_conf_include(os.path.join(os.sep, "etc", "ld.so.conf"),
                           "foo", 1)
     assert glob_mock.call_args_list == [
         call(os.path.join(os.path.join(os.sep, "etc"),
                           "foo"))]
Exemple #4
0
 def _test(parse_conf, glob_mock):
     ldconfig = os_dep.Ldconfig()
     ldconfig._parse_conf_include(os.path.join(os.sep, "etc", "ld.so.conf"),
                                  os.path.join("a", "b", "c"), 1)
     assert glob_mock.call_args_list == [
         call(os.path.join(os.path.join(os.sep, "etc"),
                           os.path.join("a", "b", "c")))]
Exemple #5
0
 def _test(parse_conf, glob_mock):
     ldconfig = os_dep.Ldconfig()
     ldconfig._parse_conf_include(
         os.path.join(os.sep, "etc", "ld.so.conf"), "foo", 1)
     assert glob_mock.call_args_list == [
         call(os.path.join(os.path.join(os.sep, "etc"), "foo"))
     ]
Exemple #6
0
 def _test(parse_conf, glob_mock):
     l = os_dep.Ldconfig()
     l._parse_conf_include(os.path.join(os.sep, "etc", "ld.so.conf"),
                           os.path.join("a", "b", "c"), 1)
     assert glob_mock.call_args_list == [
         call(
             os.path.join(os.path.join(os.sep, "etc"),
                          os.path.join("a", "b", "c")))
     ]
Exemple #7
0
 def _test(parse_conf_include_mock, add_dir_mock):
     ldconfig._parse_config_line([
         "include foo", "  # comment", "", "hwcap 0 nosegneg", "asdf",
         "include *", "include glob1 glob2    glob3 \t \t \t glob4"
     ], "filename", 55)
     assert add_dir_mock.call_args_list == [call("asdf")]
     assert parse_conf_include_mock.call_args_list == [
         call("filename", "foo", 55),
         call("filename", "*", 55),
         call("filename", "glob1", 55),
         call("filename", "glob2", 55),
         call("filename", "glob3", 55),
         call("filename", "glob4", 55),
     ]
 def _test(parse_conf_include_mock, add_dir_mock):
     l._parse_config_line(["include foo", "  # comment", "",
                           "hwcap 0 nosegneg", "asdf",
                           "include *",
                           "include glob1 glob2    glob3 \t \t \t glob4"], "filename", 55)
     assert add_dir_mock.call_args_list == [call("asdf")]
     assert parse_conf_include_mock.call_args_list == [call(
         "filename", "foo", 55),
         call(
             "filename", "*", 55),
         call(
             "filename", "glob1", 55),
         call(
             "filename", "glob2", 55),
         call(
             "filename", "glob3", 55),
         call(
             "filename", "glob4", 55),
     ]
 def test_sleeptest_control():
     assert "autotest" in sut_setup_control.DOC
     assert job_mock.run_test.call_args_list == [
         call("sleeptest", seconds=1)]
 def test_sleeptest_control():
     assert "autotest" in sut_setup_control.DOC
     assert job_mock.run_test.call_args_list == [
         call("sleeptest", seconds=1)
     ]
 def _test2(parse_conf_mock):
     l._parse_conf_include("noslash", "foo", 1)
     assert glob_mock.call_args_list == [call("foo")]
Exemple #12
0
 def _test2(parse_conf_mock):
     ldconfig._parse_conf_include("noslash", "foo", 1)
     assert glob_mock.call_args_list == [call("foo")]