Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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)
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")
Exemplo n.º 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")