Пример #1
0
 def test_getbytes(self):
     conf = Config()
     assert conf.getbytes("foo", "bar", b"\xff") == b"\xff"
Пример #2
0
 def test_getbytes(self):
     conf = Config()
     assert conf.getbytes("foo", "bar", b"\xff") == b"\xff"
Пример #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"
Пример #4
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"