def test_one_day(self, celery, geoip_data, redis, stats):
    bhutan_ip = geoip_data['Bhutan']['ip']
    london_ip = geoip_data['London']['ip']
    redis.pfadd(('apiuser:submit:test:' + self.today_str), bhutan_ip, london_ip)
    redis.pfadd(('apiuser:submit:valid_key:' + self.today_str), bhutan_ip)
    redis.pfadd(('apiuser:locate:valid_key:' + self.today_str), bhutan_ip)
    monitor_api_users.delay().get()
    stats.check(gauge=[('submit.user', 1, 2, ['key:test', 'interval:1d']), ('submit.user', 1, 2, ['key:test', 'interval:7d']), ('submit.user', 1, 1, ['key:valid_key', 'interval:1d']), ('submit.user', 1, 1, ['key:valid_key', 'interval:7d']), ('locate.user', 1, 1, ['key:valid_key', 'interval:1d']), ('locate.user', 1, 1, ['key:valid_key', 'interval:7d'])])
def test_one_day(self, celery, geoip_data, redis, stats):
    bhutan_ip = geoip_data['Bhutan']['ip']
    london_ip = geoip_data['London']['ip']
    redis.pfadd(('apiuser:submit:test:' + self.today_str), bhutan_ip, london_ip)
    redis.pfadd(('apiuser:submit:valid_key:' + self.today_str), bhutan_ip)
    redis.pfadd(('apiuser:locate:valid_key:' + self.today_str), bhutan_ip)
    monitor_api_users.delay().get()
    stats.check(gauge=[('submit.user', 1, 2, ['key:test', 'interval:1d']), ('submit.user', 1, 2, ['key:test', 'interval:7d']), ('submit.user', 1, 1, ['key:valid_key', 'interval:1d']), ('submit.user', 1, 1, ['key:valid_key', 'interval:7d']), ('locate.user', 1, 1, ['key:valid_key', 'interval:1d']), ('locate.user', 1, 1, ['key:valid_key', 'interval:7d'])])