'Creates the basic data used on tests'

def _create_basic_reservation_data(self):

    self.reservation_hosts = []
    for hostname in ('reshost1', 'reshost2', 'reshost3', 'reshost4'):
        host = models.Host.objects.create(hostname=hostname)
        self.reservation_hosts.append(host)
    self.user1 = models.User.objects.create(login='resuser1')
    self.user2 = models.User.objects.create(login='resuser2')
    reservations.create(['reshost4'], self.user2.login)
