Example #1
0
 def test_empty_path(self, s):
     """ headphones.path does not modify empty strings """
     p1 = path(s)
     a = str(p1)
     e = str(s)
     self.assertEqual(a, e)
Example #2
0
 def test_path_repr(self):
     s = '/tmp'
     p1 = path(s)
     self.assertIn('headphones.config.types.path', p1.__repr__())
Example #3
0
 def test_path_call(self):
     s = '/tmp'
     p1 = path(s)
     self.assertEqual(p1, s)
Example #4
0
 def test_path_static_equal_call(self):
     s = '/tmp'
     p1 = path(s)
     p2 = path.__call__(s)
     self.assertEqual(p1, p2)
Example #5
0
    def test_path(self):
        p = path('/tmp')

        self.assertIsNotNone(p)
        self.assertIsInstance(p, path)