add short test that "about me" field gets entered into database

This commit is contained in:
jieun 2017-04-11 12:17:21 -04:00
parent c0bef22dda
commit 52f8848f14
1 changed files with 8 additions and 0 deletions

View File

@ -168,6 +168,14 @@ class TestCase(unittest.TestCase):
assert microsoft_translate(u'Español', 'es', 'en') == u'Spanish'
def test_make_about_me(self):
u = User(nickname='juan', about_me='human')
db.session.add(u)
db.session.commit()
checkuser1 = User.query.filter_by(nickname='juan').one()
expected = 'human'
assert checkuser1.about_me == expected
if __name__ == '__main__':
try:
unittest.main()