import unittest2

from google.appengine.ext import testbed

from models.account import Account
from models.suggestion import Suggestion

from helpers.suggestions.suggestion_fetcher import SuggestionFetcher


class TestEventTeamRepairer(unittest2.TestCase):
    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()
        self.testbed.init_memcache_stub()

        account = Account.get_or_insert(
            "123",
            email="user@example.com",
            registered=True).put()

        suggestion = Suggestion(
            author=account,
            review_state=Suggestion.REVIEW_PENDING,
            target_key="2012cmp",
            target_model="event").put()

    def testCount(self):
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "event"), 1)
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "media"), 0)

import unittest2

from google.appengine.ext import testbed

from models.account import Account
from models.suggestion import Suggestion

from helpers.suggestions.suggestion_fetcher import SuggestionFetcher


class TestSuggestionFetcher(unittest2.TestCase):
    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()
        self.testbed.init_memcache_stub()

        account = Account.get_or_insert(
            "123",
            email="user@example.com",
            registered=True).put()

        suggestion = Suggestion(
            author=account,
            review_state=Suggestion.REVIEW_PENDING,
            target_key="2012cmp",
            target_model="event").put()

    def testCount(self):
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "event"), 1)
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "media"), 0)

Fix class name of test.
Fix class name of test.

  import unittest2
  
  from google.appengine.ext import testbed
  
  from models.account import Account
  from models.suggestion import Suggestion
  
  from helpers.suggestions.suggestion_fetcher import SuggestionFetcher
  
  
- class TestEventTeamRepairer(unittest2.TestCase):
+ class TestSuggestionFetcher(unittest2.TestCase):
      def setUp(self):
          self.testbed = testbed.Testbed()
          self.testbed.activate()
          self.testbed.init_datastore_v3_stub()
          self.testbed.init_memcache_stub()
  
          account = Account.get_or_insert(
              "123",
              email="user@example.com",
              registered=True).put()
  
          suggestion = Suggestion(
              author=account,
              review_state=Suggestion.REVIEW_PENDING,
              target_key="2012cmp",
              target_model="event").put()
  
      def testCount(self):
          self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "event"), 1)
          self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "media"), 0)
  
Fix class name of test.
## Code Before:
import unittest2

from google.appengine.ext import testbed

from models.account import Account
from models.suggestion import Suggestion

from helpers.suggestions.suggestion_fetcher import SuggestionFetcher


class TestEventTeamRepairer(unittest2.TestCase):
    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()
        self.testbed.init_memcache_stub()

        account = Account.get_or_insert(
            "123",
            email="user@example.com",
            registered=True).put()

        suggestion = Suggestion(
            author=account,
            review_state=Suggestion.REVIEW_PENDING,
            target_key="2012cmp",
            target_model="event").put()

    def testCount(self):
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "event"), 1)
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "media"), 0)

## Instruction:
Fix class name of test.
## Code After:
import unittest2

from google.appengine.ext import testbed

from models.account import Account
from models.suggestion import Suggestion

from helpers.suggestions.suggestion_fetcher import SuggestionFetcher


class TestSuggestionFetcher(unittest2.TestCase):
    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()
        self.testbed.init_memcache_stub()

        account = Account.get_or_insert(
            "123",
            email="user@example.com",
            registered=True).put()

        suggestion = Suggestion(
            author=account,
            review_state=Suggestion.REVIEW_PENDING,
            target_key="2012cmp",
            target_model="event").put()

    def testCount(self):
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "event"), 1)
        self.assertEqual(SuggestionFetcher.count(Suggestion.REVIEW_PENDING, "media"), 0)
