def test_filter_repo_limits_keys(self):
        """
        Tests that filter_repo filters keys that are not in KEYS tuple

        :return:
        """
        repo_dict = {
            'stargazers_count': 1,
            'watchers_count': 1,
            'forks_count': 1,
            'strip_me': 'here',
            'remove': 'this'
        }

        expected = {
            'stargazers_count': 1,
            'watchers_count': 1,
            'forks_count': 1,
        }

        self.assertEqual(
            GitHubBattleFormView.filter_repo(repo_dict),
            expected
        )
from django.conf.urls import url
from repositories.views import GitHubBattleFormView


urlpatterns = [
    url(r'^githubbattle/', GitHubBattleFormView.as_view(), name='githubbattle')
]