示例#1
0
 def test_word15(self):
     text = (
         u"I hate the word ❌NO❌ like y'all n***a hate a bitch dat "
         "uses her teeth on da dick."
     )
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "no")
示例#2
0
 def test_word9(self):
     text = (
         u'I hate the word "spooky", bro the f**k you mean '
         '" dis n***a movin spooky" sounds like some shaggy '
         "n scooby doo type shit son"
     )
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "spooky")
示例#3
0
    def test_word20(self):
        # Arrange
        self.setup_aint_a_word()
        text = u'"You(s)"\nAin\'t a word either 😒"'

        # Act
        word = word_tools.word_from_text(text, self.pattern, self.search_term)
        self.assertNotEqual(word, "you(s")
示例#4
0
    def test_word20(self):
        # Arrange
        self.setup_aint_a_word()
        text = u'"You(s)"\nAin\'t a word either 😒"'

        # Act
        word = word_tools.word_from_text(
            text, self.pattern, self.search_term)
        self.assertNotEqual(word, "you(s")
示例#5
0
    def test_word19(self):
        # Arrange
        self.setup_aint_a_word()
        text = u'"People(s)" ain\'t a word😒'

        # Act
        word = word_tools.word_from_text(text, self.pattern, self.search_term)

        # Assert
        self.assertNotEqual(word, "people(s")
示例#6
0
    def test_word19(self):
        # Arrange
        self.setup_aint_a_word()
        text = u'"People(s)" ain\'t a word😒'

        # Act
        word = word_tools.word_from_text(
            text, self.pattern, self.search_term)

        # Assert
        self.assertNotEqual(word, "people(s")
示例#7
0
 def test_word9(self):
     text = (u'I hate the word "spooky", bro the f**k you mean '
             '" dis n***a movin spooky" sounds like some shaggy '
             'n scooby doo type shit son')
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "spooky")
示例#8
0
 def test_word7(self):
     text = u"Wow..I hate the word thot but that was funny."
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "thot")
示例#9
0
 def test_word18(self):
     text = u"i hate the word glove(s)"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertNotEqual(word, "glove(s")
示例#10
0
 def test_word1(self):
     text = u"I hate the word 'moist.'"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "moist")
示例#11
0
 def test_word17(self):
     text = u"i hate the word expand"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "expand")
示例#12
0
 def test_word16(self):
     text = (
         u"@QuayNastyy Lmao So What Would Call Me ? " "Cause I HATE The Word Boo ."
     )
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "boo")
示例#13
0
 def test_word5(self):
     text = u'RT @MegannoConnor: I hate the word "swills"'
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, None)
示例#14
0
 def test_word4(self):
     text = u"!!!! RT @BoobsNBamboos_: I hate the word hun tf"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, None)
示例#15
0
 def test_word3(self):
     text = u"“@BoobsNBamboos_: I hate the word hun tf” Sorry Hun."
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, None)
示例#16
0
 def test_word2(self):
     text = u"I hate the word hun tf"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "hun")
示例#17
0
 def test_word1(self):
     text = u"I hate the word 'moist.'"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "moist")
示例#18
0
 def test_word11(self):
     text = (u'I HATE the word bae....'
             'it seems like you just too lazy to say babe')
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "bae")
示例#19
0
 def test_word13(self):
     text = u"I hate the word 'Banter' it annoys me so much🙈"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "banter")
示例#20
0
 def test_word6(self):
     text = u'I hate the word "Bae". It makes you sound uneducated.'
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "bae")
示例#21
0
 def test_word16(self):
     text = (u"@QuayNastyy Lmao So What Would Call Me ? "
             "Cause I HATE The Word Boo .")
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "boo")
示例#22
0
 def test_word7(self):
     text = u"Wow..I hate the word thot but that was funny."
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "thot")
示例#23
0
 def test_word18(self):
     text = u"i hate the word glove(s)"
     word = word_tools.word_from_text(
         text, self.pattern, self.search_term)
     self.assertNotEqual(word, "glove(s")
示例#24
0
 def test_word8(self):
     text = u"Why I hate the word 'couture'?! #weird"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "couture")
示例#25
0
 def test_word3(self):
     text = u"“@BoobsNBamboos_: I hate the word hun tf” Sorry Hun."
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, None)
示例#26
0
 def test_word5(self):
     text = u'RT @MegannoConnor: I hate the word "swills"'
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, None)
示例#27
0
 def test_word2(self):
     text = u"I hate the word hun tf"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "hun")
示例#28
0
 def test_word17(self):
     text = u"i hate the word expand"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "expand")
示例#29
0
 def test_word4(self):
     text = u"!!!! RT @BoobsNBamboos_: I hate the word hun tf"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, None)
示例#30
0
 def test_word10(self):
     text = u'I swear I hate the word “ flee " . . . .'
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "flee")
示例#31
0
 def test_word6(self):
     text = u'I hate the word "Bae". It makes you sound uneducated.'
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "bae")
示例#32
0
 def test_word11(self):
     text = u"I HATE the word bae...." "it seems like you just too lazy to say babe"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "bae")
示例#33
0
 def test_word8(self):
     text = u"Why I hate the word 'couture'?! #weird"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "couture")
示例#34
0
 def test_word12(self):
     text = u"I hate the word YALL like im a conjoined twin"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "yall")
示例#35
0
 def test_word10(self):
     text = u'I swear I hate the word “ flee " . . . .'
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "flee")
示例#36
0
 def test_word13(self):
     text = u"I hate the word 'Banter' it annoys me so much🙈"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "banter")
示例#37
0
 def test_word12(self):
     text = u'I hate the word YALL like im a conjoined twin'
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "yall")
示例#38
0
 def test_word14(self):
     text = u"I hate the word madting"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "madting")
示例#39
0
 def test_word14(self):
     text = u"I hate the word madting"
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "madting")
示例#40
0
 def test_word15(self):
     text = (u"I hate the word ❌NO❌ like y'all n***a hate a bitch dat "
             "uses her teeth on da dick.")
     word = word_tools.word_from_text(text, self.pattern, self.search_term)
     self.assertEqual(word, "no")