Skip to content

Commit

Permalink
fix tests now that we only accept kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
cewing committed May 30, 2015
1 parent fc0c5ea commit 582735c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ccx_keys/tests/test_ccx_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def test_invalid_locations(self, *args, **kwargs):
)
@ddt.unpack
def test_replacement(self, key, newvalue):
course_key = CCXLocator('org', 'course', 'run', 'rev', ccx='1', deprecated=False)
course_key = CCXLocator(org='org', course='course', run='run', branch='rev', ccx='1', deprecated=False)
kwargs = {key: newvalue}
self.assertEquals(
getattr(CCXBlockUsageLocator(course_key, 'c', 'n', deprecated=False).replace(**kwargs), key),
Expand All @@ -347,8 +347,8 @@ def test_replacement(self, key, newvalue):
CCXBlockUsageLocator(course_key, 'c', 'n', deprecated=True).replace(block_id=u'name\xae')

def test_map_into_course_location(self):
original_course = CCXLocator('org', 'course', 'run', ccx='1')
new_course = CCXLocator('edX', 'toy', '2012_Fall', ccx='1')
original_course = CCXLocator(org='org', course='course', run='run', ccx='1')
new_course = CCXLocator(org='edX', course='toy', run='2012_Fall', ccx='1')
loc = CCXBlockUsageLocator(original_course, 'cat', 'name:more_name')
expected = CCXBlockUsageLocator(new_course, 'cat', 'name:more_name')
actual = loc.map_into_course(new_course)
Expand Down

0 comments on commit 582735c

Please sign in to comment.