def test_inappropriate_application(self):

    class NotSerializable():

        def __init__(self, count):
            super().__init__()
            self.count = count

        @addressable(Exactly(int))
        def count(self):
            pass
    with self.assertRaises(NotSerializableError):
        NotSerializable(42)
def test_inappropriate_application(self):

    class NotSerializable():

        def __init__(self, count):
            super().__init__()
            self.count = count

        @addressable(Exactly(int))
        def count(self):
            pass
    with self.assertRaises(NotSerializableError):
        NotSerializable(42)