def testCanMessage(self): Push.message("Giants beat the Mets.", channels=["Giants", "Mets"]) Push.message("Willie Hayes injured by own pop fly.", channels=["Giants"], where={"injuryReports": True}) Push.message("Giants scored against the A's! It's now 2-2.", channels=["Giants"], where={"scores": True})
def testCanAlert(self): Push.alert({"alert": "The Mets scored! The game is now tied 1-1.", "badge": "Increment", "title": "Mets Score"}, channels=["Mets"], where={"scores": True})
def send(self): self._prepare_push() Push.alert(self._data, self.where, **self._kwargs)