コード例 #1
0
ファイル: test_ride_settings.py プロジェクト: IlfirinPL/RIDE
 def test_get_path_with_one_part(self):
     settings = RideSettings()
     self.assertTrue(settings.get_path('foo').endswith('ride%sfoo' % os.sep))
コード例 #2
0
ファイル: test_ride_settings.py プロジェクト: IlfirinPL/RIDE
 def test_get_path_with_three_parts(self):
     path = RideSettings().get_path('foo', 'bar', 'hello')
     expected_end = 'ride/foo/bar/hello'.replace('/', os.sep)
     self.assertTrue(path.endswith(expected_end))
コード例 #3
0
ファイル: test_ride_settings.py プロジェクト: IlfirinPL/RIDE
 def test_get_path_without_parts(self):
     settings = RideSettings()
     self.assertTrue(settings.get_path().endswith('ride'))