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)
def test_path_repr(self): s = '/tmp' p1 = path(s) self.assertIn('headphones.config.types.path', p1.__repr__())
def test_path_call(self): s = '/tmp' p1 = path(s) self.assertEqual(p1, s)
def test_path_static_equal_call(self): s = '/tmp' p1 = path(s) p2 = path.__call__(s) self.assertEqual(p1, p2)
def test_path(self): p = path('/tmp') self.assertIsNotNone(p) self.assertIsInstance(p, path)