diff options
Diffstat (limited to 'session_manager_unittest.py')
-rw-r--r-- | session_manager_unittest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/session_manager_unittest.py b/session_manager_unittest.py index 532ae75..30283a1 100644 --- a/session_manager_unittest.py +++ b/session_manager_unittest.py @@ -40,7 +40,7 @@ class ABControllerMock: def __init__(self): self.limits = dict() - def addLimits(self, aLimit, bLimit, song="current"): + def storeLimits(self, aLimit, bLimit, song="current"): if song not in self.limits: self.limits[song] = list() self.limits[song].append([aLimit, bLimit]) @@ -88,7 +88,7 @@ def test_addAbLimits(): uut = SessionManager(None, abControllerMock) for i, ab in enumerate(abLimits): - uut.addLimits(ab[0], ab[1]) + uut.storeLimits(ab[0], ab[1]) assert abControllerMock.limits["current"][i] == ab def test_loadSession(): @@ -120,7 +120,7 @@ def test_saveSession(): abLimits = entry["ab_limits"] if abLimits is not None: for l in abLimits: - abControllerMock.addLimits(l[0], l[1], song) + abControllerMock.storeLimits(l[0], l[1], song) sessionFile = MockFile() uut.saveSession(sessionFile) |