diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-30 15:58:52 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-01-30 15:58:52 +0100 |
| commit | 5ec953ee368777881be265fdcac9679e611faa8f (patch) | |
| tree | d919c7a42c4c2fe0948930ca51b0a9698fc8dc63 /archaeological_operations/tests.py | |
| parent | 34e7fc222370c0652481fc28461a3ba0a283577d (diff) | |
| parent | c1e94dc1b8851b61bc8d697e08f8a407b5269365 (diff) | |
| download | Ishtar-5ec953ee368777881be265fdcac9679e611faa8f.tar.bz2 Ishtar-5ec953ee368777881be265fdcac9679e611faa8f.zip | |
Merge branch 'v0.9' into wheezy
Diffstat (limited to 'archaeological_operations/tests.py')
| -rw-r--r-- | archaeological_operations/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index ba7722d84..d4134693f 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -689,7 +689,8 @@ class OperationSearchTest(TestCase, OperationInitTest): # one result for exact search response = c.get(reverse('get-operation'), search) self.assertEqual(response.status_code, 200) - self.assertEqual(json.loads(response.content)['total'], 1) + res = json.loads(response.content) + self.assertTrue(res['total'] == 1) # no result for the brother search = {'periods': recent_neo.pk} |
