diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-09 17:09:40 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-03-09 17:09:40 +0100 |
commit | 88d5fe7b1afe7d3758c2a72986a9fcfff07587d3 (patch) | |
tree | 6571aa9b30627e622b4d28cdddc47a4d8a61bd87 /archaeological_operations/tests.py | |
parent | c6f8a7cbf3c2d11173358b25fe499b63e5d78277 (diff) | |
download | Ishtar-88d5fe7b1afe7d3758c2a72986a9fcfff07587d3.tar.bz2 Ishtar-88d5fe7b1afe7d3758c2a72986a9fcfff07587d3.zip |
Operation tables: adapt columns (refs #3501, refs #3509)
Diffstat (limited to 'archaeological_operations/tests.py')
-rw-r--r-- | archaeological_operations/tests.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index c2d5aad83..1b64f581d 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -894,17 +894,18 @@ class OperationSearchTest(TestCase, OperationInitTest): self.operations += self.create_operation(self.alt_user, self.orgas[0]) self.item = self.operations[0] - def testBaseSearch(self): + def test_base_search(self): c = Client() response = c.get(reverse('get-operation'), {'year': '2010'}) - # no result when no authentification + # no result when no authentication self.assertTrue(not json.loads(response.content)) c.login(username=self.username, password=self.password) response = c.get(reverse('get-operation'), {'year': '2010'}) - self.assertTrue(json.loads(response.content)['total'] == 2) + self.assertEqual(json.loads(response.content)['total'], 2) response = c.get(reverse('get-operation'), {'operator': self.orgas[0].pk}) - self.assertTrue(json.loads(response.content)['total'] == 2) + result = json.loads(response.content) + self.assertEqual(result['total'], 2) def create_relations(self): rel1 = models.RelationType.objects.create( |