def test_nsfw(self): self.input.group.return_value = "test" nsfw(self.phenny, self.input) self.phenny.say.assert_called_once_with( "!!NSFW!! -> test <- !!NSFW!!")
def test_nsfw_none(self): self.input.group.return_value = None nsfw(self.phenny, self.input) self.phenny.say.assert_called_once_with( ".nsfw <link> - for when a link isn't safe for work")
def test_nsfw(self): input = Mock(group=lambda x: "test") nsfw(self.phenny, input) self.phenny.say.assert_called_once_with( "!!NSFW!! -> test <- !!NSFW!!")
def test_nsfw(self): input = Mock(group=lambda x: "test") nsfw(self.phenny, input) self.phenny.say.assert_called_once_with("!!NSFW!! -> test <- !!NSFW!!")
def test_nsfw_none(self): input = Mock(group=lambda x: None) nsfw(self.phenny, input) self.phenny.say.assert_called_once_with( ".nsfw <link> - for when a link isn't safe for work")
def test_nsfw(self): self.input.group.return_value = "test" nsfw(self.phenny, self.input) self.phenny.say.assert_called_once_with("!!NSFW!! -> test <- !!NSFW!!")