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