Exemple #1
0
 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!!")
Exemple #2
0
 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")
Exemple #3
0
    def test_nsfw(self):
        input = Mock(group=lambda x: "test")
        nsfw(self.phenny, input)

        self.phenny.say.assert_called_once_with(
                "!!NSFW!! -> test <- !!NSFW!!")
Exemple #4
0
    def test_nsfw(self):
        input = Mock(group=lambda x: "test")
        nsfw(self.phenny, input)

        self.phenny.say.assert_called_once_with("!!NSFW!! -> test <- !!NSFW!!")
Exemple #5
0
 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")
Exemple #6
0
 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")
Exemple #7
0
 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!!")