def test_is_empty(self): """ Test for is_empty method """ queue = Queue() self.assertEqual(queue.is_empty(), True) queue.enqueue(1) self.assertEqual(queue.is_empty(), False)
def test_is_empty(self): print('Test: test_is_empty') queue = Queue() print('Test: Empty queue') self.assertEqual(queue.is_empty(), True) print('Test: Not an empty queue') queue.enqueue(1) self.assertEqual(queue.is_empty(), False) print('Success: test_is_empty')