예제 #1
0
파일: test_cron.py 프로젝트: tantek/kuma
 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())
예제 #2
0
파일: test_cron.py 프로젝트: tantek/kuma
 def test_purge_all_tweets(self):
     purge_tweets()
     eq_(0, Tweet.objects.count())
예제 #3
0
파일: test_cron.py 프로젝트: tantek/kuma
 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())
예제 #4
0
 def test_purge_all_tweets(self):
     purge_tweets()
     eq_(0, Tweet.objects.count())
예제 #5
0
 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())
예제 #6
0
 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())