def test_OverlapLength_SameStrings(self): assert_that(6, equal_to(base.OverlapLength('foobar', 'foobar')))
def test_OverlapLength_Substring(self): assert_that(6, equal_to(base.OverlapLength('foobar', 'foobarzoo'))) assert_that(6, equal_to(base.OverlapLength('zoofoobar', 'foobar')))
def test_OverlapLength_BasicWithUnicode(self): assert_that(3, equal_to(base.OverlapLength('bar fäö', 'fäö bar'))) assert_that(3, equal_to(base.OverlapLength('zoofäö', 'fäözoo')))
def test_OverlapLength_OneCharOverlap(self): assert_that(1, equal_to(base.OverlapLength('foo b', 'b zoo')))
def OverlapLength_BasicWithUnicode_test(): eq_(3, base.OverlapLength(u'bar fäö', u'fäö bar')) eq_(3, base.OverlapLength(u'zoofäö', u'fäözoo'))
def OverlapLength_BasicWithUnicode_test(): assert_that( 3, equal_to( base.OverlapLength( u'bar fäö', u'fäö bar' ) ) ) assert_that( 3, equal_to( base.OverlapLength( u'zoofäö', u'fäözoo' ) ) )
def OverlapLength_LongestOverlap_test(): eq_(7, base.OverlapLength('bar foo foo', 'foo foo bar'))
def test_OverlapLength_NoOverlap(self): assert_that(0, equal_to(base.OverlapLength('foobar', 'goobar'))) assert_that(0, equal_to(base.OverlapLength('foobar', '(^($@#$#@'))) assert_that(0, equal_to(base.OverlapLength('foo bar zoo', 'foo zoo bar')))
def OverlapLength_SameStrings_test(): eq_(6, base.OverlapLength('foobar', 'foobar'))
def OverlapLength_Substring_test(): eq_(6, base.OverlapLength('foobar', 'foobarzoo')) eq_(6, base.OverlapLength('zoofoobar', 'foobar'))
def OverlapLength_LongestOverlap_test(): assert_that( 7, equal_to( base.OverlapLength( 'bar foo foo', 'foo foo bar' ) ) )
def OverlapLength_SameStrings_test(): assert_that( 6, equal_to( base.OverlapLength( 'foobar', 'foobar' ) ) )
def OverlapLength_OneCharOverlap_test(): assert_that( 1, equal_to( base.OverlapLength( 'foo b', 'b zoo' ) ) )
def test_OverlapLength_LongestOverlap(self): assert_that(7, equal_to(base.OverlapLength('bar foo foo', 'foo foo bar')))
def OverlapLength_EmptyInput_test(): eq_(0, base.OverlapLength('', 'goobar')) eq_(0, base.OverlapLength('foobar', '')) eq_(0, base.OverlapLength('', ''))
def test_OverlapLength_EmptyInput(self): assert_that(0, equal_to(base.OverlapLength('', 'goobar'))) assert_that(0, equal_to(base.OverlapLength('foobar', ''))) assert_that(0, equal_to(base.OverlapLength('', '')))
def OverlapLength_NoOverlap_test(): eq_(0, base.OverlapLength('foobar', 'goobar')) eq_(0, base.OverlapLength('foobar', '(^($@#$#@')) eq_(0, base.OverlapLength('foo bar zoo', 'foo zoo bar'))
def OverlapLength_Basic_test(): eq_(3, base.OverlapLength('foo bar', 'bar zoo')) eq_(3, base.OverlapLength('foobar', 'barzoo'))
def test_OverlapLength_Basic(self): assert_that(3, equal_to(base.OverlapLength('foo bar', 'bar zoo'))) assert_that(3, equal_to(base.OverlapLength('foobar', 'barzoo')))
def OverlapLength_OneCharOverlap_test(): eq_(1, base.OverlapLength('foo b', 'b zoo'))
def OverlapLength_Basic_test(): assert_that( 3, equal_to( base.OverlapLength( 'foo bar', 'bar zoo' ) ) ) assert_that( 3, equal_to( base.OverlapLength( 'foobar', 'barzoo' ) ) )