コード例 #1
0
def test_email_recipients_not_eq_str_gives_correct_json_representation():
    _filter = EmailRecipients.not_eq("test_recipient")
    expected = IS_NOT.format("emailRecipients", "test_recipient")
    assert str(_filter) == expected
コード例 #2
0
def test_email_recipients_not_in_str_gives_correct_json_representation():
    items = ["EmailRecipients1", "EmailRecipients2", "EmailRecipients3"]
    _filter = EmailRecipients.not_in(items)
    expected = NOT_IN.format("emailRecipients", *items)
    assert str(_filter) == expected
コード例 #3
0
def test_email_recipients_exists_str_gives_correct_json_representation():
    _filter = EmailRecipients.exists()
    expected = EXISTS.format("emailRecipients")
    assert str(_filter) == expected