Beispiel #1
0
class TestBasePublisher(object):
    def setup_class(self):
        self.publisher = BasePublisher()

    def test_base_publisher_start(self):
        with pytest.raises(NotImplementedError):
            self.publisher.start()

    def test_base_publisher_publish(self):
        with pytest.raises(NotImplementedError):
            self.publisher.publish()
Beispiel #2
0
 def setup_class(self):
     self.publisher = BasePublisher()