fix: test case.

pull/301/head
Raphaël Vinot 2018-11-22 15:21:13 +01:00
parent 0770a15659
commit a7a178c4bd
3 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,4 @@
{
"response": [
[
{
"SharingGroup": {
"id": "1",
@ -96,5 +95,4 @@
],
"editable": true
}
]
}
]

View File

@ -112,7 +112,8 @@ class TestOffline(unittest.TestCase):
self.initURI(m)
pymisp = PyMISP(self.domain, self.key)
sharing_groups = pymisp.get_sharing_groups()
self.assertEqual(sharing_groups[0], self.sharing_groups['response'][0])
print(sharing_groups)
self.assertEqual(sharing_groups['response'][0], self.sharing_groups[0])
def test_auth_error(self, m):
self.initURI(m)

View File

@ -18,7 +18,7 @@ except ImportError as e:
from uuid import uuid4
travis_run = False
travis_run = True
class TestComprehensive(unittest.TestCase):