Commit 6d21985d by Clinton Blackburn

Merge pull request #4 from edx/activity_type_fix

Fixed typo and added tests
parents 7cc11934 835dd1ec
...@@ -5,4 +5,4 @@ Course activity types. ...@@ -5,4 +5,4 @@ Course activity types.
ANY = 'any' ANY = 'any'
ATTEMPTED_PROBLEM = 'attempted_problem' ATTEMPTED_PROBLEM = 'attempted_problem'
PLAYED_VIDEO = 'played_video' PLAYED_VIDEO = 'played_video'
POSTED_FORUM = 'posted_form' POSTED_FORUM = 'posted_forum'
from unittest import TestCase
from analyticsclient import activity_type, demographic
class HelperTests(TestCase):
"""
Basic checks for typos.
"""
def test_activity_type(self):
self.assertEqual('any', activity_type.ANY)
self.assertEqual('attempted_problem', activity_type.ATTEMPTED_PROBLEM)
self.assertEqual('played_video', activity_type.PLAYED_VIDEO)
self.assertEqual('posted_forum', activity_type.POSTED_FORUM)
def test_demographic(self):
self.assertEqual('birth_year', demographic.BIRTH_YEAR)
self.assertEqual('education', demographic.EDUCATION)
self.assertEqual('gender', demographic.GENDER)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment