Commit 9e634fe5e2274c3258c88f831502aeb9fe8e574a

Authored by Macartur Sousa
1 parent 16dad809

Removing unused tests

Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing 1 changed file with 0 additions and 34 deletions   Show diff stats
src/colab-spb-plugin/tests/test_get_list.py
... ... @@ -1,34 +0,0 @@
1   -# -*- coding: utf-8 -*-
2   -from django.test import TestCase, Client
3   -
4   -
5   -class SPBTest(TestCase):
6   -
7   - fixtures = ['colab_spb.json']
8   -
9   - def setUp(self):
10   - super(SPBTest, self).setUp()
11   - self.client = Client()
12   -
13   - def tearDown(self):
14   - pass
15   -
16   - def test_getlist_without_list(self):
17   - response = self.client.get("/spb/get_list/?list_name=")
18   - message = ("Não foi possível encontrada lista de discussão"
19   - " associada a está comunidade, para mais"
20   - " detalhes contate o administrador.")
21   - self.assertEqual(message, response.content)
22   - self.assertEqual(404, response.status_code)
23   -
24   - def test_getlist_with_list(self):
25   - response = self.client.get("/spb/get_list/?list_name=ListA&MAX=5")
26   - self.assertEqual(5, len(response.context[1]['latest']))
27   -
28   - def test_getlist_default_MAX(self):
29   - response = self.client.get("/spb/get_list/?list_name=ListA")
30   - self.assertEqual(7, len(response.context[1]['latest']))
31   -
32   - def test_getlist_invalid_MAX(self):
33   - response = self.client.get("/spb/get_list/?list_name=ListA&MAX=")
34   - self.assertEqual(7, len(response.context[1]['latest']))