コード例 #1
0
def test_allementsareuniqueforlargedata():
    """Test that all truncated list of emails are unique"""
    assert IsUnique(removeduplicates(getemailaddressdata(233473)))
コード例 #2
0
def test_checksmallnumberofemails():
    """Tests that number of emails in the received list are greater or equal
    than the expected entries"""
    assert len(getemailaddressdata(1))>=1
コード例 #3
0
def test_negativeemails():
    """Tests that number of emails in the received list are 0 when expected entries are negative"""
    assert len(getemailaddressdata(0))==0