EnglishPal/app/test_vocabulary.py

12 lines
317 B
Python

from vocabulary import UserVocabularyLevel, ArticleVocabularyLevel
def test_article_level():
''' Boundary case test '''
article = ArticleVocabularyLevel('')
assert article.level == 0
def test_user_level():
''' Boundary case test '''
user = UserVocabularyLevel({})
assert user.level == 0