search for: test_pass

Displaying 6 results from an estimated 6 matches for "test_pass".

2014 Aug 08
2
[PATCH 1/2] Add type checking, support integers as value
...= 3 +REG_DWORD = 4 +REG_DWORD_BIG_ENDIAN = 5 +REG_QWORD = 11 + +def set_value (key="test key", t=REG_BINARY, value=b'Val'): + global h + h.node_set_value (h.root (), { + "key": key, + "t": t, + "value": value + }) + +def test_pass (t, value, exp_bytes): + global h + key = "test_key" + set_value (key, t, value) + val = h.node_get_value (h.root (), key) + ret_type, ret_value = h.value_value (val) + assert t == ret_type, \ + "expected type {0}, got {1}".format(t, ret_type) + asser...
2018 Jul 04
2
Benchmarks with imaptest
...ads? I'm trying to run a battery of tests in my new cluster and apparently no combination of parameters works, because fetch instruction doesn't run. Below is the command I'm using and its partial output imaptest/src/imaptest host=$SERVER_IP port=143 user=teste%d at example%d.com pass=$TEST_PASS users=10 domains=10 clients=100 - append=0 select=100 fetch=100 Logi Sele Fetc Logo 100% 100% 100% 100% 166 156 0 156 99/100 223 230 0 230 100/100 206 203 0 203 97/100 Can anybody help me understand why fetch doesn't work and how to fix this? Regards, -- Jo?o Paulo Basto...
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi, When an integer argument is passed as value, node_set_value segfaults. Reproducer is at the end of this message The backtrace points at hivex-py.c, function get_value. While obj is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL. Kind regards, Peter https://lekensteyn.nl #!/usr/bin/env python3 import hivex, sys h = hivex.Hivex(sys.argv[1]) print(h) val = {
2018 Jul 06
0
Benchmarks with imaptest
...tery of tests in my new cluster and apparently no combination of parameters works, because fetch instruction doesn't run. Below is the command I'm using and its partial output > > imaptest/src/imaptest host=$SERVER_IP port=143 user=teste%d at example%d.com <http://d.com/> pass=$TEST_PASS users=10 domains=10 clients=100 - append=0 select=100 fetch=100 > Logi Sele Fetc Logo > 100% 100% 100% 100% > 166 156 0 156 99/100 > 223 230 0 230 100/100 > 206 203 0 203 97/100 > > Can anybody help me understand why fetch doesn't work and how to fix...
2014 Aug 16
7
[hivex] [PATCH 0/6] Python fixes for node_set_value
Hi, This patch series is based on a prior patch[1], splitting off changes as requested and incorporating feedback from Richard Jones. It introduces type validation to avoid segmentation faults (instead, it reports an exception) and fixes handling of the bytes type in Python 3. Major changes since that series: - Drop newly introduced support for integer types for DWORD/QWORDS - Reject Unicode
2006 Aug 15
0
Mocha - dynamic method calling
...led exactly as specified before the end of a test. If you just want to stub out the method to give a known return value, use the "stubs" method... def test_fails_because_message_was_not_called object = mock() object.expects(:message).with(''hello'') end def test_passes_because_message_is_called object = mock() object.expects(:message).with(''hello'') object.message(''hello'') end def test_passes_even_though_message_is_not_called object = mock() object.stubs(:message) end I realise that the stack trace...