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

tests.test_capabilities   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A TestCapabilities.test_get_capabilities() 0 4 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