Add test_orgs_should_write_zero_padded_dates #204
This commit is contained in:
parent
f76a5cdfcc
commit
25bf9b6372
@ -123,6 +123,14 @@ class TestUserService(TestCase):
|
||||
assert self.redis_conn.zscore('user:test_user:geocoder_here:success_responses:201506', '01') == 1
|
||||
assert self.redis_conn.zscore('user:test_user:geocoder_here:success_responses:201506', '1') == None
|
||||
|
||||
def test_orgs_should_write_zero_padded_dates(self):
|
||||
us = self.__build_user_service('test_user', orgname='test_org')
|
||||
us.increment_service_use(self.NOKIA_GEOCODER, 'success_responses',
|
||||
amount=400,
|
||||
date=date(2015,6,1))
|
||||
assert self.redis_conn.zscore('org:test_org:geocoder_here:success_responses:201506', '01') == 400
|
||||
assert self.redis_conn.zscore('org:test_org:geocoder_here:success_responses:201506', '1') == None
|
||||
|
||||
|
||||
def __build_user_service(self, username, quota=100, service='heremaps',
|
||||
orgname=None, soft_limit=False,
|
||||
|
Loading…
Reference in New Issue
Block a user