100% coverage for network2_test

This commit is contained in:
Jakub Warmuz 2015-05-14 21:16:38 +00:00
parent 484fd8fe9e
commit 82bd808ab3
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

View file

@ -100,7 +100,7 @@ class NetworkTest(unittest.TestCase):
return self.value
@classmethod
def from_json(cls, value):
return cls(value)
pass # pragma: no cover
# pylint: disable=protected-access
jws = self.net._wrap_in_jws(MockJSONDeSerializable('foo'))
self.assertEqual(jose.JWS.json_loads(jws).payload, '"foo"')