def construct_query(id, time): return '{},{},0,0,{},0,0,0,0,0,{}\r'.format( id, get_active_user_count(time), get_projects(time), time.strftime('%Y-%m-%d %H:%M:%S.%f') )
def construct_query(id, time): return '{},{},0,0,{},0,0,0,0,0,{}\r'.format( id, get_active_user_count(time), get_projects(time), time.strftime('%Y-%m-%d %H:%M:%S.%f') )
def test_get_all_user_count(self): time_now = datetime.utcnow() count = get_active_user_count(time_now) nt.assert_equal(count, 2)
def test_get_all_user_count(self): time_now = datetime.utcnow() count = get_active_user_count(time_now) nt.assert_equal(count, 2)