def test_emailfilter_split(self): self.assertNotSubstring('Me <me', wb.userfilter('Me <*****@*****.**>')) self.assertSubstring('me', wb.userfilter('Me <*****@*****.**>')) self.assertSubstring('the.net', wb.userfilter('Me <*****@*****.**>')) self.assertSubstring('John Doe', wb.userfilter('John Doe <*****@*****.**>'))
def test_emailfilter(self): self.assertNotSubstring('*****@*****.**', wb.userfilter('*****@*****.**')) self.assertNotSubstring('*****@*****.**', wb.userfilter('Me <*****@*****.**>'))