def test_setValue(self):
     f = MyFilename(fn='clif', ex='hudson')
     orig = f.getValue()
     self.assertEqual(orig, 'clif.hudson')
     f.setValue(fn='mac', ex='knife')
     self.assertNotEqual(orig, f.getValue())
     self.assertEqual(f.getValue(), 'mac.knife')
 def test_replace(self):
     f = MyFilename(fn='clif', ex='hudson')
     f.replace('u', 'x')
     self.assertEqual('clif.hxdson', f.getValue())
 def test_getExt(self):
     f = MyFilename(fn='clif', ex='hudson')
     self.assertEqual(f.getExt().getValue(), 'hudson')
 def test_appendName(self):
     f = MyFilename(fn='clif', ex='hudson')
     f.appendName(ch='^^^^^^')
     self.assertEqual('clif^^^^^^.hudson', f.getValue())
 def test_toUpper(self):
     f = MyFilename(fn='clif', ex='hudson')
     self.assertEqual('clif.hudson', f.getValue())
     f.toUpper()
     self.assertEqual('CLIF.HUDSON', f.getValue())
 def test_setValue2(self):
     f = MyFilename(fn='clif', ex='')
     self.assertEqual(f.getValue(), 'clif')
 def test_init(self):
     f = MyFilename(fn='clif', ex='hudson')
     self.assertNotEqual(f.getValue(), None)