You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
668 B
26 lines
668 B
#! /usr/bin/env python |
|
from __future__ import print_function |
|
from jmbase.support import debug_dump_object, get_password, get_log, joinmarket_alert |
|
import pytest |
|
|
|
def test_debug_dump_object(): |
|
joinmarket_alert[0] = "dummy jm alert" |
|
class TestObj(object): |
|
def __init__(self): |
|
self.x = "foo" |
|
self.password = "bar" |
|
self.y = "baz" |
|
to = TestObj() |
|
debug_dump_object(to) |
|
to.given_password = "baa" |
|
debug_dump_object(to) |
|
to.extradict = {1:2, 3:4} |
|
debug_dump_object(to) |
|
to.extralist = ["dummy", "list"] |
|
debug_dump_object(to) |
|
to.extradata = 100 |
|
debug_dump_object(to, skip_fields="y") |
|
|
|
|
|
|
|
|
|
|