'This test ensures that if an instruction exists it is pulled and
formatted from the <instructions> tags. Otherwise, it should return nothing.'

def test_extract_instructions(self):

    xmltree = etree.fromstring(self.sample_xml)
    expected_xml = u'<div><p>Video    Test    Instructions.</p></div>'
    actual_xml = self.mod._extract_instructions(xmltree)
    self.assertIsNotNone(actual_xml)
    self.assertEqual(expected_xml.strip(), actual_xml.strip())
    xmltree = etree.fromstring('<annotatable>foo</annotatable>')
    actual = self.mod._extract_instructions(xmltree)
    self.assertIsNone(actual)
