Пример #1
0
 def test_get_path_with_one_part(self):
     settings = RideSettings()
     self.assertTrue(settings.get_path('foo').endswith('ride%sfoo' % os.sep))
Пример #2
0
 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
 def test_get_path_without_parts(self):
     settings = RideSettings()
     self.assertTrue(settings.get_path().endswith('ride'))