title: locust 0.9 to 1.3 Exception: No tasks defined. use the @task decorator or set the tasks property of the User
body: <p>I have the following code which run fine in locust 0.9. Now with 1.3 it throws the exception mentioned in the title. Can anyone see what's wrong?</p>
  <pre><code>import time
  import random
  import datetime
  import requests
  from requests.packages.urllib3.exceptions import InsecureRequestWarning
  import logging
  import json
  import os
  from random import randint, choice
  
  from locust import HttpUser, TaskSet, task
  from pyquery import PyQuery
  
  requests.packages.urllib3.disable_warnings()
  
  class FrontPage(TaskSet):
      def on_start(self):
          self.client.verify = False
  
      @task(20)
      def index(self):
          self.client.get(&quot;/&quot;)
      
  class DestinationPagesFixed(TaskSet):
      de_paths = [&quot;/belgien&quot;, &quot;daenemark&quot;, &quot;deutschland&quot;, &quot;frankreich&quot;, &quot;griechenland&quot;
      , &quot;italien&quot;
      , &quot;luxemburg&quot;
      ]
      def on_start(self):
          self.client.verify = False
      @task
      def test_1(self):
          paths = self.de_paths
          path = choice(paths)
          self.client.get(path, name=&quot;Static page&quot;)
  
  class UserBehavior(TaskSet):
      tasks = {FrontPage: 15, DestinationPagesFixed: 19}
  
  
  class WebsiteUser(HttpUser):
      task_set = UserBehavior
      min_wait = 400
      max_wait = 10000
  </code></pre>