示例#1
0
文件: tests.py 项目: vpekar/yamltests
class TestExtractorClass(unittest.TestCase):
    
    def setUp(self):
        self.ex = Extractor()
    
    def test_extract(self):
        msg = "Extract mention at the begining of a tweet"
        text = "@username reply"
        expected = ["username"]
        actual = self.ex.extract(text)
        self.assertEqual(actual, expected)
示例#2
0
文件: tests.py 项目: vpekar/yamltests
 def setUp(self):
     self.ex = Extractor()