def _testSmokeStyle(self, style): return ekeyword.diff_keywords(['~a', 'b', '-abcde'], ['a', '-b', '-abxde'], style=style)
def testDelete(self): """Test when content is simply deleted""" ret = ekeyword.diff_keywords(['~a'], ['a']) self.assertNotEqual(ret, '')
def testReplace(self): """Test when some content replaces another""" ret = ekeyword.diff_keywords(['~a'], ['-a']) self.assertNotEqual(ret, '')
def testEmpty(self): """Test when there is no content to diff""" ret = ekeyword.diff_keywords([], []) self.assertEqual(ret, '')
def testSame(self): """Test when there is no difference""" ret = ekeyword.diff_keywords(['a b c'], ['a b c']) self.assertEqual(ret, 'a b c')
def _testSmokeStyle(self, style): return ekeyword.diff_keywords( ['~a', 'b', '-abcde'], ['a', '-b', '-abxde'], style=style)