Ejemplo n.º 1
0
    def setUp(self):
        commonSetUp(self)
        self.dirtyFiles = []

        register_url = reverse("register")

        # create some users
        for username in ("skiessi", "superjoe", "just64helpin"):
            self.client.post(
                register_url,
                {
                    "username": username,
                    "artist_name": username + " band",
                    "email": username + "@mailinator.com",
                    "password": "******",
                    "confirm_password": "******",
                    "agree_to_terms": True,
                    "plan": 0,
                },
            )
            code = User.objects.filter(username=username)[0].get_profile().activate_code
            self.client.get(reverse("confirm", args=(username, code)))

        self.skiessi = User.objects.filter(username="******")[0]
        self.superjoe = User.objects.filter(username="******")[0]
        self.just64helpin = User.objects.filter(username="******")[0]
Ejemplo n.º 2
0
    def setUp(self):
        commonSetUp(self)
        self.dirtyFiles = []

        register_url = reverse('register')

        # create some users
        for username in ("skiessi", "superjoe", "just64helpin"):
            self.client.post(
                register_url, {
                    'username': username,
                    'artist_name': username + ' band',
                    'email': username + '@mailinator.com',
                    'password': '******',
                    'confirm_password': '******',
                    'agree_to_terms': True,
                    'plan': 0,
                })
            code = User.objects.filter(
                username=username)[0].get_profile().activate_code
            self.client.get(reverse('confirm', args=(username, code)))

        self.skiessi = User.objects.filter(username="******")[0]
        self.superjoe = User.objects.filter(username="******")[0]
        self.just64helpin = User.objects.filter(username="******")[0]
Ejemplo n.º 3
0
    def setUp(self):
        commonSetUp(self)
        register_url = reverse('register')

        # create some users
        for username in ("skiessi", "superjoe", "just64helpin"):
            self.client.post(register_url, {
                'username': username,
                'artist_name': username + ' band',
                'email': username + '@mailinator.com',
                'password': '******',
                'confirm_password': '******',
                'agree_to_terms': True,
                'plan': 0, 
            })
            code = User.objects.filter(username=username)[0].get_profile().activate_code
            self.client.get(reverse('confirm', args=(username, code)))

        self.skiessi = User.objects.filter(username="******")[0]
        self.superjoe = User.objects.filter(username="******")[0]
        self.just64helpin = User.objects.filter(username="******")[0]

        # create some chat rooms
        self.open_room = ChatRoom.objects.create(permission_type=ChatRoom.OPEN)
        self.open_room.save()
        self.white_room = ChatRoom.objects.create(permission_type=ChatRoom.WHITELIST)
        self.white_room.save()
        self.black_room = ChatRoom.objects.create(permission_type=ChatRoom.BLACKLIST)
        self.black_room.save()

        now = datetime.now()
        self.early_room = ChatRoom.objects.create(permission_type=ChatRoom.OPEN, start_date=now+timedelta(minutes=1), end_date=now+timedelta(minutes=2))
        self.late_room = ChatRoom.objects.create(permission_type=ChatRoom.OPEN, start_date=now-timedelta(minutes=2), end_date=now-timedelta(minutes=1))
        self.late_room = ChatRoom.objects.create(permission_type=ChatRoom.OPEN, start_date=now-timedelta(minutes=2), end_date=now-timedelta(minutes=1))
Ejemplo n.º 4
0
    def setUp(self):
        commonSetUp(self)
        register_url = reverse('register')

        # create some users
        for username in ("skiessi", "superjoe", "just64helpin"):
            self.client.post(
                register_url, {
                    'username': username,
                    'artist_name': username + ' band',
                    'email': username + '@mailinator.com',
                    'password': '******',
                    'confirm_password': '******',
                    'agree_to_terms': True,
                    'plan': 0,
                })
            code = User.objects.filter(
                username=username)[0].get_profile().activate_code
            self.client.get(reverse('confirm', args=(username, code)))

        self.skiessi = User.objects.filter(username="******")[0]
        self.superjoe = User.objects.filter(username="******")[0]
        self.just64helpin = User.objects.filter(username="******")[0]

        # create some chat rooms
        self.open_room = ChatRoom.objects.create(permission_type=ChatRoom.OPEN)
        self.open_room.save()
        self.white_room = ChatRoom.objects.create(
            permission_type=ChatRoom.WHITELIST)
        self.white_room.save()
        self.black_room = ChatRoom.objects.create(
            permission_type=ChatRoom.BLACKLIST)
        self.black_room.save()

        now = datetime.now()
        self.early_room = ChatRoom.objects.create(
            permission_type=ChatRoom.OPEN,
            start_date=now + timedelta(minutes=1),
            end_date=now + timedelta(minutes=2))
        self.late_room = ChatRoom.objects.create(
            permission_type=ChatRoom.OPEN,
            start_date=now - timedelta(minutes=2),
            end_date=now - timedelta(minutes=1))
        self.late_room = ChatRoom.objects.create(
            permission_type=ChatRoom.OPEN,
            start_date=now - timedelta(minutes=2),
            end_date=now - timedelta(minutes=1))