def test_from_xml_path_argument_is_not_a_valid_path(self):
    'testing if a IOError will be raised when the path argument is not\n        a valid path\n        '
    sm = pymel.core.PyNode('sequenceManager1')
    with self.assertRaises(IOError) as cm:
        sm.from_xml('not a valid path')
    self.assertEqual(cm.exception.message, 'Please supply a valid path to an XML file!')
testing if a IOError will be raised when the path argument is not
a valid path
def test_from_xml_path_argument_is_not_a_valid_path(self):
    'testing if a IOError will be raised when the path argument is not\n        a valid path\n        '
    sm = pymel.core.PyNode('sequenceManager1')
    with self.assertRaises(IOError) as cm:
        sm.from_xml('not a valid path')
    self.assertEqual(cm.exception.message, 'Please supply a valid path to an XML file!')