Exemple #1
0
    def test_enqueue_and_dequeue(self):
        self.data = "hello moto"

        assert SimpleMQ.enqueue(self.data) is True

        assert self.r.exists(SimpleMQ.name())

        assert SimpleMQ.dequeue() == self.data
Exemple #2
0
    def test_enqueue_and_dequeue(self):
        self.data = "hello moto"

        assert SimpleMQ.enqueue(self.data) is True

        assert self.r.exists(SimpleMQ.name())

        assert SimpleMQ.dequeue() == self.data
Exemple #3
0
 def test_name(self):
     assert SimpleMQ.name() != ""
Exemple #4
0
 def test_name(self):
     assert SimpleMQ.name() != ""