def test_dubstep_gives_wubs(): assert 'wubwub' in dubstep('', '', '', '', '')
def test_dubstep_after_timeout_resets_count(): dubstep._last = time.time() - 30 dubstep._counts['#bots'] = 10 dubstep('', '#bots', '', '', '') assert dubstep._counts['#bots'] == 1