#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import os
import sys
if sys.version_info[0] < 3:
    raise Exception("Python 2.x is not supported. Please upgrade to 3.x")

sys.path.append(os.path.join(os.path.dirname(__file__), ".."))

import GetOldTweets3 as got

def test_Username():
    tweetCriteria = got.manager.TweetCriteria().setUsername('barackobama')\
                                               .setMaxTweets(1)
    tweet = got.manager.TweetManager.getTweets(tweetCriteria)[0]
    assert tweet.username == 'BarackObama'

def test_QuerySearch():
    tweetCriteria = got.manager.TweetCriteria().setQuerySearch('#europe #refugees')\
                                               .setSince("2015-05-01")\
                                               .setUntil("2015-09-30")\
                                               .setMaxTweets(1)
    tweet = got.manager.TweetManager.getTweets(tweetCriteria)[0]
    assert tweet.hashtags.lower() == '#europe #refugees'

@@ -917,24 +917,37 @@
 %0A    assert 
+'#europe' in 
 tweet.hashta
@@ -960,28 +960,54 @@
 er()
- == '#europe #refugees'
+%0A    assert '#refugees' in tweet.hashtags.lower()
 %0A

Fix pytest