示例#1
0
 def test_both(self):
     bn, ext = ntools.split('hello.dat')
     self.assertEquals('hello', bn)
     self.assertEquals('dat', ext)
示例#2
0
 def test_two_dot(self):
     bn, ext = ntools.split('hello.hbm.xml')
     self.assertEquals('hello.hbm', bn)
     self.assertEquals('xml', ext)
示例#3
0
 def test_only_bn(self):
     bn, ext = ntools.split('hello')
     self.assertEquals('hello', bn)
     self.assertNone(ext)
示例#4
0
 def test_both(self):
     bn, ext = ntools.split('hello.dat')
     self.assertEqual('hello', bn)
     self.assertEqual('dat', ext)
示例#5
0
 def test_two_dot(self):
     bn, ext = ntools.split('hello.hbm.xml')
     self.assertEqual('hello.hbm', bn)
     self.assertEqual('xml', ext)
示例#6
0
 def test_only_bn(self):
     bn, ext = ntools.split('hello')
     self.assertEqual('hello', bn)
     self.assertNone(ext)