def test_purge_all_tweets(self): purge_tweets() eq_(0, Tweet.objects.count())
def test_purge_tweets_one_locale(self): purge_tweets() eq_(3, Tweet.objects.filter(locale='en').count()) # Does not touch Romanian tweets. eq_(2, Tweet.objects.filter(locale='ro').count())
def test_purge_tweets_two_locales(self): purge_tweets() eq_(1, Tweet.objects.filter(locale='en').count()) eq_(1, Tweet.objects.filter(locale='ro').count())