Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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)
Beispiel #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)
Beispiel #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")
Beispiel #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")
Beispiel #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)
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")
Beispiel #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")