def test_both(self): bn, ext = ntools.split('hello.dat') self.assertEquals('hello', bn) self.assertEquals('dat', ext)
def test_two_dot(self): bn, ext = ntools.split('hello.hbm.xml') self.assertEquals('hello.hbm', bn) self.assertEquals('xml', ext)
def test_only_bn(self): bn, ext = ntools.split('hello') self.assertEquals('hello', bn) self.assertNone(ext)
def test_both(self): bn, ext = ntools.split('hello.dat') self.assertEqual('hello', bn) self.assertEqual('dat', ext)
def test_two_dot(self): bn, ext = ntools.split('hello.hbm.xml') self.assertEqual('hello.hbm', bn) self.assertEqual('xml', ext)
def test_only_bn(self): bn, ext = ntools.split('hello') self.assertEqual('hello', bn) self.assertNone(ext)