def METHOD_NAME(self):
    cb = self.cb
    cb.grab()
    cb.showPopup()
    popup = cb.findChild(QListView)  # type: QListView
    # run through paint code for coverage
    popup.grab()
    cb.grab()
    model = popup.model()
    self.assertEqual(model.rowCount(), cb.count())
    QTest.keyClick(popup, Qt.Key_E)
    self.assertEqual(model.rowCount(), 2)
    QTest.keyClick(popup, Qt.Key_Backspace)
    self.assertEqual(model.rowCount(), cb.count())
    QTest.keyClick(popup, Qt.Key_F)
    self.assertEqual(model.rowCount(), 1)
    popup.setCurrentIndex(model.index(0, 0))
    spy = QSignalSpy(cb.activated[int])
    QTest.keyClick(popup, Qt.Key_Enter)
    self.assertEqual(spy[0], [4])
    self.assertEqual(cb.currentIndex(), 4)
    self.assertEqual(cb.currentText(), "Four")
    self.assertFalse(popup.isVisible())