예제 #1
0
def test_send_report():
    b = BaseBackend(None, '', '', None)
    with pytest.raises(NotImplementedError):
        b.send_report('', '')
예제 #2
0
def test_qsettings():
    b = BaseBackend(None, '', '', None)
    assert b.qsettings() is not None
예제 #3
0
def test_set_formatter():
    b = BaseBackend(None, '', '', None)
    assert b.formatter is None
    b.set_formatter(EmailFormatter("test"))
    assert isinstance(b.formatter, EmailFormatter)