def test_exists(collection): collection.insert_one({'username': '******'}) assert not User.exists('me')
def test_exists_not(collection): assert not User.exists('me')