Passed
Pull Request — master (#14)
by
unknown
01:52
created

TestCapabilities.test_get_capabilities()   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nop 1
1
from .base import BaseTestCase, NEXTCLOUD_VERSION
2
3
4
class TestCapabilities(BaseTestCase):
5
6
    def test_get_capabilities(self):
7
        res = self.nxc.get_capabilities()
8
        assert res['ocs']['meta']['statuscode'] == self.SUCCESS_CODE
9
        assert str(res['ocs']['data']['version']['major']) == NEXTCLOUD_VERSION
10