Example #1
0
def test_add():
    '''Testing add method'''
    testwords = WordList(WORDS_DIR + "/test.txt")
    assert 'baz' not in testwords
    testwords.add('baz')    # add "baz" to active word list
    assert 'baz' in testwords, '"baz" was added to WordList'