Beispiel #1
0
 def test_comparison(self, hdivert):
     h2 = ucrh.ConfigHandlerDiverting("divert2")
     assert hash(hdivert) == hash(hdivert)
     assert hash(hdivert) != hash(h2)
     assert hdivert == hdivert
     assert hdivert != h2
Beispiel #2
0
 def test_tmpfile(self):
     PATH = "/path/to/divert"
     h = ucrh.ConfigHandlerDiverting(PATH)
     tmp = h._temp_file_name()
     assert tmp != PATH
     assert dirname(tmp) == dirname(PATH)
Beispiel #3
0
 def hdivert(self):
     return ucrh.ConfigHandlerDiverting("/divert")