コード例 #1
0
ファイル: test_split.py プロジェクト: lalinsky/nosexunit
 def test_both(self):
     bn, ext = ntools.split('hello.dat')
     self.assertEquals('hello', bn)
     self.assertEquals('dat', ext)
コード例 #2
0
ファイル: test_split.py プロジェクト: lalinsky/nosexunit
 def test_two_dot(self):
     bn, ext = ntools.split('hello.hbm.xml')
     self.assertEquals('hello.hbm', bn)
     self.assertEquals('xml', ext)
コード例 #3
0
ファイル: test_split.py プロジェクト: lalinsky/nosexunit
 def test_only_bn(self):
     bn, ext = ntools.split('hello')
     self.assertEquals('hello', bn)
     self.assertNone(ext)
コード例 #4
0
ファイル: test_split.py プロジェクト: Xotabu4/NoseXUnitPy3
 def test_both(self):
     bn, ext = ntools.split('hello.dat')
     self.assertEqual('hello', bn)
     self.assertEqual('dat', ext)
コード例 #5
0
ファイル: test_split.py プロジェクト: Xotabu4/NoseXUnitPy3
 def test_two_dot(self):
     bn, ext = ntools.split('hello.hbm.xml')
     self.assertEqual('hello.hbm', bn)
     self.assertEqual('xml', ext)
コード例 #6
0
ファイル: test_split.py プロジェクト: Xotabu4/NoseXUnitPy3
 def test_only_bn(self):
     bn, ext = ntools.split('hello')
     self.assertEqual('hello', bn)
     self.assertNone(ext)