Beispiel #1
0
    def test_3(self):
        rv = strip_dict({
            "omero.jvmcfg.foo": "a",
            "something.else": "b"})

        assert rv["foo"] == "a"
        assert "something.else" not in rv
    def test_3(self):
        rv = strip_dict({
            "omero.jvmcfg.foo": "a",
            "something.else": "b"})

        assert rv["foo"] == "a"
        assert "something.else" not in rv
Beispiel #3
0
 def test_4(self, input, output):
     p = write_config(input)
     config = ConfigXml(filename=str(p), env_config="default")
     try:
         m = config.as_map()
         s = strip_dict(m, suffix="blitz")
         assert s == output
     finally:
         config.close()
 def test_4(self, input, output):
     p = write_config(input)
     config = ConfigXml(filename=str(p), env_config="default")
     try:
         m = config.as_map()
         s = strip_dict(m, suffix="blitz")
         assert s == output
     finally:
         config.close()
Beispiel #5
0
 def test_5(self):
     rv = strip_dict({
         "omero.jvmcfg.a.blitz": "b",
     }, suffix="blitz")
     assert rv["a"] == "b"
Beispiel #6
0
 def test_2(self):
     rv = strip_dict({"a.b.c": "d"}, prefix="a.b")
     assert rv["c"] == "d"
Beispiel #7
0
 def test_1(self):
     rv = strip_dict({"a.b": "c"}, prefix="a")
     assert {"b": "c"} == rv
 def test_5(self):
     rv = strip_dict({"omero.jvmcfg.a.blitz": "b"}, suffix="blitz")
     assert rv["a"] == "b"
 def test_2(self):
     rv = strip_dict({"a.b.c": "d"}, prefix="a.b")
     assert rv["c"] == "d"
Beispiel #10
0
 def test_1(self):
     rv = strip_dict({"a.b": "c"}, prefix="a")
     assert {"b": "c"} == rv