Example #1
0
 def test_getbytes(self):
     conf = Config()
     assert conf.getbytes("foo", "bar", b"\xff") == b"\xff"
 def test_getbytes(self):
     conf = Config()
     assert conf.getbytes("foo", "bar", b"\xff") == b"\xff"
Example #3
0
 def test_setbytes(self):
     conf = Config()
     conf.add_section("foo")
     conf.setbytes("foo", "bar", b"\xff\xff")
     assert conf.getbytes("foo", "bar") == b"\xff\xff"
 def test_setbytes(self):
     conf = Config()
     conf.add_section("foo")
     conf.setbytes("foo", "bar", b"\xff\xff")
     assert conf.getbytes("foo", "bar") == b"\xff\xff"